• Resolved cmkl

    (@cmkl)


    I am trying to strip out the HTML from event descriptions, titles and what not, while preserving hyperlinks.

    I have added html=”no” to the event template tags for description and title, but there’s still markup appearing in the descriptions, including unclosed html tags which is turning the rest of the page bold and underlined.

    Am I missing something? Or does this not work?

    I can’t have the random formatting messing up the site’s design.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter cmkl

    (@cmkl)

    So the problem seems to be that when you limit the length of the description field, you run the risk of cutting off the close tags for HTML formatted content or indeed even anchor tags for hyperlinks.

    The only way I’ve found to get it to work consistently is to run with no limit to the length of the description, html=”no” and autolink=”yes”.

    This way at least viewers get the hyperlinks, the page looks reasonably clean. The downside is that people can be pretty wordy in their descriptions and there’s nothing I can do about that.

Viewing 1 replies (of 1 total)

The topic ‘Remove HTML: is this supposed to work’ is closed to new replies.