We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21953
    • 34 Posts
    Quote from: sottwell at Aug 12, 2009, 04:40 AM

    Actually, it would be a trivial plugin to do that. Just have
    $modx->documentOutput = str_replace('< html', '<html', $modx->documentOutput);
    

    and repeat the line for the other tags as required. It wouldn’t be a good idea to just use one line to replace any < followed by a space, since those are often used as arrows or for other purposes in the content (although those really should be expressed by their htmlentities, such as &gt;).

    You could just use one line if you wanted to use a regular expression replacement, but those give me a headache.
    Except of course that as the plugin contains <html, it too cannot be saved. Looks like it’s something the webhost will need to sort out.
    • str_replace(’< html’, ’<’ . ’html’, etc etc...

      Surely we can be smarter than a dumb computer program grin grin
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 21953
        • 34 Posts
        I’m sure that would probably work, but why make things complicated grin

        The web-host has just added a mod security exclusion rule which has solved the problem.

        Thanks everyone for your prompt responses. In my on again off again association with modx spanning nearly 5 years, I’ve always been impressed with the assistance given in these forums.