• Resolved echobrin

    (@echobrin)


    How can I strip tags from event details? I have a list of upcoming events displayed with truncated event details. I would like to strip out any html tags from these truncated event details in the list. (I would like to keep any html tags in the event details on individual event pages.)

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello. I’m not the author but let me help you with that. You can use the PHP function strip_tags for that:
    http://php.net/manual/de/function.strip-tags.php

    Just wrap the output in that function. Hope that helps.

    Senador

    Thread Starter echobrin

    (@echobrin)

    Thanks for your reply. The details output appears in sc_event-list.php but I couldn’t figure out where to apply the strip_tags function. We ended up using collapse details instead, and that seems to have solved our particular problem.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘strip html tags from details’ is closed to new replies.