ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

unsafe html whitelist

March 24, 2010 6:34pm

Subscribe [1]
  • #1 / Mar 24, 2010 6:34pm

    Joe Wolin

    206 posts

    Hello,

    I’m wanting to add in the following html tags to my unsafe html whitelist: ul,ol,li,div,p

    I’ve gone into the core.typography.php file and modified the safe_encod and safe_decode arrays and its seems to “mostly” work now.

    However,

    If there is a nested div

    <div>
      <div>test</div>
    </div>

    then it encodes one of the sets, which causes the formatting to fail.

    Is there something I can change to prevent the double nested tags from getting encoded?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases