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

New Post: XHTML special characters no longer render correctly

$
0
0
So, I've fixed the issue by updating the FixXhtmlFragment method in XhtmlTransformations.asmx to include
.Replace(" ", " ");
in:
    private static string FixXhtmlFragment(string xhtmlFragment)
        {
            xhtmlFragment = Regex.Replace(xhtmlFragment, @"(\s)\r\n</script>", "$1</script>", RegexOptions.Multiline);
            return xhtmlFragment.Replace("\xA0", "&#160;").Replace("&nbsp;", "&#160;").Replace("&amp;nbsp;", "&#160;");
        }
...but it seems like a hack, any ideas why this would happen in the first place?

Viewing all articles
Browse latest Browse all 2540

Trending Articles



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