I use a CMS called uCoz and it has a <?$RELATED_ENTRIES$(5)?>
variable that displays postings related to the page my visitor is reading. I would like to put the related links between the post text, but it does not work for CMS system rule, which does not have root scripts open.
The solution I found was to create a <div class="related"></div>
and insert the content that the <?$RELATED_ENTRIES$(5)?>
variable generates using jQuery. But in Javascript the double quotation marks have to put \
(backslash) before and the generated code does not have this \
(backslash)
The code that the variable generates is thus
<ul class="uRelatedEntries">
<li class="uRelatedEntry"><a href="/link#1">Lorem Ipsum</a></li>
<li class="uRelatedEntry"><a href="/link#2">Lorem Ipsum</a></li>
<li class="uRelatedEntry"><a href="/link#3">Lorem Ipsum</a></li>
</ul>
Only HTML is compact on a single line.