[erlang-questions] beginner: Generating HTML with ">" from Erlang
Thu Feb 13 13:59:15 CET 2014
Mmmmh, right. Was thinking about <.
That being said, code consuming HTML or XML shouldn’t see a difference, and not escaping could also introduce other bugs, as ]]> is not supposed to appear in content (in XML). This leads us to the original question, which was « why do you need to do this? ».
Le 13 févr. 2014 à 13:50, Magnus Henoch <magnus@REDACTED> a écrit :
> Anthony Ramine <n.oxyde@REDACTED> writes:
>> Why do you want to do that?
>> An HTML document with a single « > » in the middle of nowhere is not valid nor well-formed HTML.
> It is in fact valid HTML. Try pasting the following into
> http://validator.w3.org/#validate_by_input :
> <!DOCTYPE html>
> <title>This is > the title</title>
> <body>This is > the body</body>
> A standalone greater-than sign is also valid in XML.
More information about the erlang-questions