Skip to content

Special Character encoding

Latest
Compare
Choose a tag to compare
@FoxxMD FoxxMD released this 20 Aug 17:42
· 4 commits to specialchars since this release

Uses htmlentities to encode simple string value if the user provides options for it

  • Can optimistically encode or catch exception and retry element creation with encoded value by passing args for htmlentities as an array with key of either htmlentities or exceptionHtmlentities based on which behavior is desired
  • Provide defaults for encode options through constructor
  • Can override defaults through $optionals param for addChild