You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HTML entities (e.g. &) should be preserved in the output. This is especially important for entities that can mess up the HTML output if converted back into their corresponding character, such as <, >, and &:
gohtml.Format("<div>0 < 1. great insight! </sarcasm> over&out.</div>")
The parser used the html.Tokenizer Text() function will return unescaped
text resulting in invalid HTML if HTML escaping is used in the input.
By using the Raw() function the text is preserved from the input and
does not remove escaping.
fixesyosssi#6
HTML entities (e.g.
&
) should be preserved in the output. This is especially important for entities that can mess up the HTML output if converted back into their corresponding character, such as<
,>
, and&
:gives:
instead should be:
The text was updated successfully, but these errors were encountered: