Here is the query to eliminate html tags and other entities like & ,  etc.
SELECT trim(regexp_replace('<p
style="margin-left:30px;">Replacing html tags & entities with space using regular expresion .</p>',
'<.+?>|\&(nbsp;)|(amp;)|(quot;)|(lt;)|(gt;)',
' ')) as plain_col
FROM dual ;
FROM dual ;
Result will be
PLAIN_COL
------------------------------------------------------------------------------------
Replacing html tags & entities with space using regular expression.
No comments:
Post a Comment