Issue with Todos screen
Posted: Sun Feb 28, 2021 12:26 pm
It appears the todo screen doesn't react well to json being in the content I have had to change a function on my logger such as
to
The todo will write it all to the database, the screen just doesn't display it all when it hits something it doesn't like. For example
- Code: Select all
public string AsHTML()
{
string result = "";
foreach (string line in this)
{
result += line + "<br/>";
}
return result;
}
to
- Code: Select all
public string AsHTML()
{
string result = "";
foreach (string line in this)
{
result += System.Web.HttpUtility.HtmlEncode(line) + "<br/>";
}
return result;
}
The todo will write it all to the database, the screen just doesn't display it all when it hits something it doesn't like. For example
- Code: Select all
"yoast_head":"<!-- This site is optimized with