[erlang-questions] beginner: Generating HTML with ">" from Erlang

Bengt Kleberg bengt.kleberg@REDACTED
Thu Feb 13 15:12:41 CET 2014


My problem is that Javascript in the HTML file look like this (when
created by xmerl):

if (i > 0) {

and that does not run.


bengt

On Thu, 2014-02-13 at 14:00 +0100, Andrzej Śliwa wrote:
> you should use html entity:
> 
> 
> >    to display > in html
> 
> 
> http://www.htmlescape.net/htmlescape_tool.html
> 
> On 13 Feb 2014 at 13:56:04, Bengt Kleberg (bengt.kleberg@REDACTED)
> wrote:
> 
> > Greetings, 
> > 
> > If ">" is valid XML, my follow up question is if there is a way to
> > use 
> > xmerl to generate XML with ">" in it? 
> > 
> > 
> > bengt 
> > 
> > On Thu, 2014-02-13 at 12:50 +0000, Magnus Henoch wrote: 
> > > 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. 
> > > 
> > > Regards, 
> > > Magnus 
> > 
> > _______________________________________________ 
> > erlang-questions mailing list 
> > erlang-questions@REDACTED 
> > http://erlang.org/mailman/listinfo/erlang-questions 
> > 




More information about the erlang-questions mailing list