[erlang-questions] beginner: Generating HTML with ">" from Erlang
Bengt Kleberg
bengt.kleberg@REDACTED
Fri Feb 14 07:04:32 CET 2014
I tried this with the official company browser(*) and it
did not work:
<script><![PCDATA[
if (i > 0) { ...
]]></script>
bengt
(*) Firefox 17
On Thu, 2014-02-13 at 15:20 +0100, Szoboszlay Dániel wrote:
> What about wrapping the Javascript code in a <![PCDATA[ ... ]]> section?
> The browser shall parse > as < in PCDATA before interpreting it as
> Javascript code.
>
> Daniel
>
> On Thu, 13 Feb 2014 15:13:56 +0100, Bengt Kleberg
> <bengt.kleberg@REDACTED> wrote:
>
> > Javascript needs ">".
> >
> >
> > On Thu, 2014-02-13 at 13:59 +0100, Anthony Ramine wrote:
> >> 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? ».
> >>
> >
> > _______________________________________________
> > erlang-questions mailing list
> > erlang-questions@REDACTED
> > http://erlang.org/mailman/listinfo/erlang-questions
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
More information about the erlang-questions
mailing list