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.

Reverse HTMLEntities

September 29, 2008 8:06pm

Subscribe [2]
  • #1 / Sep 29, 2008 8:06pm

    Andrew Smith

    95 posts

    Seeing as on insertion of an article, quotes etc are converted to HTML entities, is there a core function that will allow me to reverse that with template code?

  • #2 / Sep 30, 2008 3:14am

    Ingmar

    29245 posts

    You can turn the behavior off altogether, if you don’t want or need it.

  • #3 / Sep 30, 2008 4:29am

    Andrew Smith

    95 posts

    We do need it.

    It’s just that, we then pull some articles out of the database in ‘xml format’

    We essentially just want apostrophes etc to act like normal, such as, http://feeds.engadget.com/weblogsinc/engadget

    The problem is, if you run {exp:xml_encode} on & etc, it still doesnt validate correctly as that is HTML, and shouldn’t be in a feed at all.

    So yeah, trying to figure out a way to convert back to straight text from within a template.

    Is enabling PHP on output the only way?

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

ExpressionEngine News!

#eecms, #events, #releases