当前位置: 动力学知识库 > 问答 > 编程问答 >

regex - How to change special XML chars with HTML code?

问题描述:

I have sentence:

I & my dog went to a walk. We <b>are walking</b> every morning. This is my {<PARAMETER>} and some other special chars <>.

I would like to have some rexep_replace expression to change only special characters that is not a tag or my parameter pattern:

Output would be:

I @amp; my dog went to a walk. We <b>are walking</b> every morning. This is my {<PARAMETER>} and some other special chars @lt;@gt;.

Instead of @ must be &.

I would need SQL or PL/SQL code to do this.

分享给朋友:
您可能感兴趣的文章:
随机阅读: