delphi中怎么写一个函数,过滤掉字符串中的html代码

delphi中如何写一个函数,过滤掉字符串中的html代码.
delphi中如何写一个函数,过滤掉字符串中的html代码.

------解决方案--------------------
1.用正则
2.用字符串替换函数