Html entities in fields

edited July 2017 in Share
I had a problem with foreign chars in CMS inputs being converted to entities unnecessarily, and the cure was auto_encode_entities = 0; The docs suggest this can be given an array as a value. Is that associative or not? eg array('name' => false, 'content' => true); or just array('name', 'content'); where inclusivity is assumed true? From testing, it seems safer to set to a boolean.

Comments

  • edited 9:00PM
    It should be the latter with no keys. If not in the array it will not be encoded. If set to TRUE, they will all be encoded.
Sign In or Register to comment.