If you’re wanting your users to be able to add the xml tags into the comment form, without having them removed, it would be best to add a filter to pre_process_comment
so as to add <pre>
tags around the comment before it’s posted to the DB.
Related Posts:
- How do I comment out a block of tags in XML?
- When importing – failed to import: Invalid post type feedback
- Get comments for more than one post
- Add placeholder attribute to comment form fields
- human_time_diff() returns “48 years ago” for all comments
- “Categories” for comments?
- Allow anonymous comments, but prevent spam [closed]
- Where to remove from comment’s feed?
- Why are default comments deprecated?
- Comments Reply Form
- Allow guests comments on single post
- Delete all user comments
- Why do I get email notifications about comments that WordPress has already determined are spam?
- Delayed commenting
- “Leave a comment” link even when you can’t
- Display number of comment replies
- User can post only one comment per day on one page
- Only subscriber role user can comment not other
- customize comment form
- How to check if commenter is the_author?
- Relaxing unescaped HTML filtering inside tags?
- Should I still worry about paginated comments with the latest wordpress versions?
- WordPress unresponsive after calling wp_update_comment()
- How to dont allow registered users to comment without being logged in?
- edit comments capability for authors
- Publish a message on facebook after having posted a comment
- Users with custom roles can’t read each other’s comments
- Why is_wp_error() is not returning false even there’s no defined error
- How can someone submit a comment when my site has no comment field?
- Separete trackbacks/pings and numbered comments
- How can I fix wp_insert_comment failure when ‘comment_content” includes slanted apostrophe in Excel csv source data
- Show comments in a popup
- Is WordPress vulnerable to “comment posting forgery”?
- How to display html in only the first level of WP comments?
- Set noindex page-comment from Pages 2, 3 and More?
- How can I convert anonymous commenters into registered users?
- How can I edit comment notification email content?
- your comment awaiting moderation message sometimes not appearing
- Limit comments per user per post
- Filter In Reply comments from WordPress Admin Panel
- blank page after submitting a comment
- Remove post navigation links
- How to automatically evaluate comment content without user seeing the delay?
- Notify post author for a new comment on his post?
- css hide all the comment reply links except the lowest nested comments
- Spammers attacking my WordPress Site – Removing URL field from core? [closed]
- Which filter/hook to use for styling comments?
- How should I get the original comment while processing the reply
- I wish to remove, disable or hide the comment authors’ links to their sites from my home page
- Admin can enter JavaScript – potential security risk?
- custom hooks before a comment is updated/edited in the database
- How to stop ultimate members to redirect comment authors to user profile?
- Replace comments with a dummy text
- How do I stop the comments going to my email?
- Disable only the comment form/box itself?
- How to implement just the wp commenting area on my custom site?
- anyone can help me to know whats going wrong? [closed]
- How to hide wordpress post comment form for specific role
- How to display comment meta under each comment content
- Why there is still an approved comment after deleting all?
- Get comment id of the individual comments in comment list when modifying comment posted using comment text filter
- Custom comment field not showing when logged-in
- get_comment_meta not behaving as expected
- get_comment_author_link not working properly
- How do I get a array, with the right order of the nested comments?
- disable reply comments on depth equals 2
- Problem with comment box
- Display last comments on home page
- How to show last comment on hover?
- Users moderate own comments
- Problem in getting user comments permalinks
- Permalink structure and dedicated comment pages
- Clicking Comment “Reply” Button only replies to first comment
- show comment with statuse
- Critical error – can’t post comments
- How to add code for wp-comments-post.php over functions.php?
- Is there a way to export WordPress comments to a non-wordpress, HTML coded site?
- Parent comment’s author display_name
- How to show a list of comments on home page from all posts?
- WordPress Custom Local Avatar not showing in comments
- Change commenters email to display name
- wp list all users who haven’t commented on a post
- Creating a “walled garden” of comments
- Adding buttons to wp-admin/edit-comments
- Faulty comment.php, comments won’t show up after posting?
- How Can I display the Current Logged-In User’s Comment at the Top of the Comments Section in WordPress?
- How to enable reply button on mostly deeply-nested comments? [closed]
- jQuery to Create Button to Show/Hide WordPress Comments and to Hide Comments by Default
- Comment form – different title if no comment yet
- Auto approve all comments (editor)
- add field comment [duplicate]
- Let users comment on categories in WordPress
- Loop not displaying comments_popup_link
- Display of comment_date within get_comments?
- How to batch convert comments to posts?
- prevent duplicate comments using wp_insert_comment
- I need help about wordpress of members section
- comment_approved custom value
- TinyMCE in comment reply form showing toolbar but can’t edit reply
- Add pending for reply comment in console WordPress