Invalid XML object references from Jekyll

I use Jekyll on GitHub Pages to run my blog .

It seems that Jekyll (semi-) randomly incorrectly XML supplants the special XML character as &tt;.

As an example, in the current version of the RSS feed, this XML source

</p>
<p>

in one place becomes

&lt;/p&gt;
&lt;p&tt;

but it was supposed to be

&lt;/p&gt;
&lt;p&gt;

&tt; is an invalid reference to the essence of XML, so some XML parsers gasp for this and refuse to continue.

At first I suspected an invisible, unacceptable character in this place in the source, but, as far as I can tell, this is not so. Moreover, this behavior does not seem consistent:

RSS- 7 , . Atom- 5 , . <p>, (, <ul>) &lt;ul&gt;, &tt;ul&gt;).

,

jekyll serve -w

, , .

HTML- XML :

{{ post.content | xml_escape }}

, ?

+4
1

, xml_escape, CGI::escapeHTML, . Jekyll, , Ruby CGI.

+2

All Articles