Skip to main content
Participant
June 20, 2008
Question

Cutting Text / Delete HTML from value

  • June 20, 2008
  • 2 replies
  • 237 views
Hello everyone

I'm new in CF, using PHP usually, and I have a problem now ;)

For a newsletter, I'd like to have a pretext. It uses the complete newstext, which is in a database. What should happen now:
1) Cutting away all the html tags (because the newsletter may have HTML tags in it)
2) Read the string into an variable, using the first 200 characters + the characters until the next space.

in PHP it's quite easy, and there is also a function to cut HTML-Tags away from a string. And I guess, there's one in CF too.
Maybe you can help me :)

Thanks
Greets
KlyX
    This topic has been closed for replies.

    2 replies

    KlyXAuthor
    Participant
    June 20, 2008
    Thanks :)
    Inspiring
    June 20, 2008
    go to cfilb.org and look for a function called safetext.