Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: Rendering special characters in Composite C1

$
0
0
Hey

I'm creating a website in Composite C1 v. 4 and I'm implementing a layout that requires an inline JavaScript. The JavaScript includes a greater-than sign (>). When Composite C1 renders this it's rendered as:
>
I tried putting <![CDATA[ ]]> around the script tags but that didn't help. I've read here that "The string that goes inside the CDATA declaration will sail through the entire Composite C1 rendering engine untouched and will be emitted 'as is' at the end (the CDATA declaration will be removed at this point)."

Here's my code:
<![CDATA[
    <script type="text/javascript">
        // Equal Height Columns
        jQuery.noConflict();
        function equalHeight(group) {
            tallest = 0;
            group.each(function () {
                thisHeight = jQuery(this).height();
                if (thisHeight > tallest) {
                    tallest = thisHeight;
                }
            });
            group.height(tallest);
        }
        jQuery(document).ready(function () {
            equalHeight(jQuery(".sf-menu-flat > li"));
        });
    </script>
    ]]>
It's this line I'm having problems with:
                if (thisHeight > tallest) {
Am I missing something?

Viewing all articles
Browse latest Browse all 2540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>