使用pagedown时,Html标签未插入数据库中

时间:2017-04-29 07:09:20

标签: javascript php laravel laravel-5 pagedown

我正在使用pagedown作为我的编辑器,现在我提交的数据一旦提交我的数据库如下:

This is what i love about 

`[A-Z]+` - One or more capitalcase ASCII caracters.

`[^A-Z]*` - We are using negated chracter class here by using the ^ sign, basically we are saying, look for any character besides the one in the [] brackets, * means zero or more times.
  | - Or

`[^A-Z]+` - Look for any character besides the one in the [] brakets, another negated character class. + means one or more times.

`g` - We add the global flag, so we get all possible matches and don't just stop at one match.

我的预期输出是包含在单独段落中的每一行。此外,当我在页面注册器中输入并查看编辑器下方的实时更新时:

enter image description here

现在,如果我检查开发工具:

enter image description here

我可以看到这里的文字完全包含在不同的段落中,但为什么在我的数据库中插入不一样?

1 个答案:

答案 0 :(得分:0)

我无法真实地告诉您的问题,或者您输出的内容是什么,但这是我所说的;

您的数据库的格式与HTML页面的格式不同。一般来说,这不应该打扰你。如果您希望将该信息显示在HTML页面上,请使用类似PHP的内容来回显它,使用HTML标记,然后将它们分开。