How can I clean HTML tags out of a ColdFusion string?

前端 未结 6 1729
南方客
南方客 2021-02-14 00:16

I am looking for a quick way to parse HTML tags out of a ColdFusion string. We are pulling in an RSS feed, that could potentially have anything in it. We are then doing some man

6条回答
  •  悲哀的现实
    2021-02-14 00:58

    I use this:

    REReplaceNoCase(text, "<[^[:space:]][^>]*>", "", "ALL");
    

    99% of the cases it works fine.

提交回复
热议问题