如何在 oracle table 中存储格式化文本并将其加载回 json?

How to store formatted text in oracle table and load it back into json?

我想在 oracle 数据库中存储格式化的文本。我不知道正确的存储方式,但我在文本中添加了 html 标签。 oracle 中是否有任何内置功能可以用来存储富文本?

我正在结果集中获取此文本并将其转换为 json。 我正在尝试在 json 中加载上面存储的文本,但我得到 o/p 就像

{
   "text": "<p> my sample text..<br/>"
}

我不想在 json 中显示这些标签。 我该怎么办?

我正在使用 jackson 进行 json 操作..

查看使用regexp_replace函数,示例:

select regexp_replace('this <span> is <p> a test </br> test','\<[a-z]*\>|\<\/[a-z]*\>',null) from dual