Import stripped and html tags in comments
-
Import stripped <p> and
html tags in comments
I am trying to import post with comments in WordPress format. The comment element is<wp:comment>
<wp:comment_date>2016-02-17 23:57:06</wp:comment_date>
<wp:comment_date_gmt>2016-02-17 23:57:06</wp:comment_date_gmt>
<wp:comment_author><![CDATA[dox]]></wp:comment_author>
<wp:comment_author_email />
<wp:comment_author_url />
<wp:comment_type> </wp:comment_type>
<wp:comment_content><![CDATA[<p>Originally posted on: http://geekswithblogs.net/mnf/archive/2016/02/17/stash-pull-stash-apply-as-one–git-command.aspx#648341</p>.gitconfig
[alias]
spa = !git stash && git pull && git stash apply?]]></wp:comment_content>
<wp:comment_approved>1</wp:comment_approved>
<wp:comment_parent>0</wp:comment_parent>
</wp:comment>When imported and view the comment, no new lines are shown. When open in editor, no <p> and
tags leftOriginally posted on: http://geekswithblogs.net/mnf/archive/2016/02/17/stash-pull-stash-apply-as-one–git-command.aspx#648341.gitconfig[alias]spa = !git stash && git pull && git stash apply?
The blog I need help with is: (visible only to logged in users)
-
`The editor in my previous post translated html tags – I will try to post xml as code
<wp:comment_content><![CDATA[<p>Originally posted on: <a href=’http://geekswithblogs.net/mnf/archive/2016/02/17/stash-pull-stash-apply-as-one–git-command.aspx#648341′>http://geekswithblogs.net/mnf/archive/2016/02/17/stash-pull-stash-apply-as-one–git-command.aspx#648341</a></p>.gitconfig<br />[alias]<br />spa = !git stash && git pull && git stash apply<br /><br />?]]></wp:comment_content>
‘ -
It seems that comments support only limited number of HTML tags. When I exported a comment,lines were separated by plain new lines, not
<br/>tags. However<a>tag is supported.
- The topic ‘Import stripped and html tags in comments’ is closed to new replies.