使用html标记从数据库读取数据到我的应用程序 [英] Read data with html tag from database to my application

查看:62
本文介绍了使用html标记从数据库读取数据到我的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题:我在数据库列中有一些带有一些Html标签的数据。 (基本上存储来自文本编辑器的数据)。我想从数据库中获取数据并导出到word。

但是因为数据是html标签的形式所以它没有在输出文件中正确显示。

它显示垃圾价值。



我的努力:我尝试过HTML编码 - 解码数据正在渲染但不是应该的形式。



请给出一些指示。

谢谢

Problem: I have data in database column with some Html tags. (basically storing data from a text editor). I want to fetch data from database and export into word.
but because data is in the form of html tags so its not properly showing in output file.
Its showing junk values.

My efforts: I have tried HTML encoding -decoding data is rendering but not in a form it should be.

Please give some directions.
Thanks

推荐答案

试试在文本框中显示html内容 [ ^ ]。


这篇关于使用html标记从数据库读取数据到我的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆