{"id":190,"date":"2021-12-20T15:40:27","date_gmt":"2021-12-20T10:10:27","guid":{"rendered":"https:\/\/hostkicker.com\/blog\/?p=190"},"modified":"2022-05-19T16:34:28","modified_gmt":"2022-05-19T11:04:28","slug":"disable-html-in-wordpress-comments","status":"publish","type":"post","link":"https:\/\/hostkicker.com\/blog\/disable-html-in-wordpress-comments\/","title":{"rendered":"How To Disable HTML In WordPress Comments"},"content":{"rendered":"<p>Read the post to learn how you can disable HTML in WordPress comments.<\/p>\n<p><span data-preserver-spaces=\"true\">If you keep a WordPress website that allows users or visitors to comment on your post, you must have faced spamming. So many people leave a comment with links that leads to Spam.<\/span><\/p>\n<p><span data-preserver-spaces=\"true\"> Most of the spam comments are made by bots using HTML tags. WordPress allows some HTML tags within the comments such as &lt;a&gt; &lt;em&gt; &lt;strong&gt; etc. Users use HTML tags to style their comments such as making words bold, italic, or adding links to their comments. <\/span><\/p>\n<p><span data-preserver-spaces=\"true\">If you disable HTML from your WordPress comments, it can prevent SPAM. So with no delay, let us tell you how you can do this. <\/span><\/p>\n<p><span data-preserver-spaces=\"true\">However, using this, you can only remove active HTML tags. So someone can still post something with tags.<\/span><span data-preserver-spaces=\"true\">\u00a0It will show up, but the tags will not be functional.<\/span><\/p>\n<h2><span data-preserver-spaces=\"true\">Disable HTML in WordPress Comments By Using Plugins.<\/span><\/h2>\n<p><span data-preserver-spaces=\"true\">For disabling HTML in WordPress comments, you can try the plugin method.<\/span><\/p>\n<h3><strong><span data-preserver-spaces=\"true\">1. Comment Link<\/span> Remove<span data-preserver-spaces=\"true\"> plugin<\/span><\/strong><\/h3>\n<p><span data-preserver-spaces=\"true\">You can easily disable HTML in WordPress comments by installing the Comment Link Remove plugin.<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">Login to your WordPress dashboard.<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">Go to Plugins&gt;&gt;New Plugin &gt;&gt;search Comment Link Remove plugin&gt;&gt;Install&gt;&gt;Activate<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">Now, After installing the plugin<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">\u00a0Go to Settings &gt;&gt;click on QC CLR settings.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-192 size-full\" src=\"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/disable-html-in-Wordpress-comments.jpg\" alt=\"\" width=\"297\" height=\"321\" srcset=\"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/disable-html-in-Wordpress-comments.jpg 297w, https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/disable-html-in-Wordpress-comments-278x300.jpg 278w\" sizes=\"auto, (max-width: 297px) 100vw, 297px\" \/><\/p>\n<p><span data-preserver-spaces=\"true\">Enable the following options.<\/span><\/p>\n<ul>\n<li><span data-preserver-spaces=\"true\">Disable turning URL\u2019s into hyperlinks in comments<\/span><\/li>\n<li><span data-preserver-spaces=\"true\">Remove HTML link tags in comments<\/span><\/li>\n<\/ul>\n<p><span data-preserver-spaces=\"true\">Afterward, click on the Save button.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-193 size-full\" src=\"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/disable-html-in-Wordpress-comments-Comment-Link-Remove-plugin.jpg\" alt=\"\" width=\"475\" height=\"549\" srcset=\"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/disable-html-in-Wordpress-comments-Comment-Link-Remove-plugin.jpg 475w, https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/disable-html-in-Wordpress-comments-Comment-Link-Remove-plugin-260x300.jpg 260w\" sizes=\"auto, (max-width: 475px) 100vw, 475px\" \/><\/p>\n<p><span data-preserver-spaces=\"true\">This will disable active HTML link tags in comments. If anyone adds the HTML tags in comments, it will show, but links will not function.<\/span><\/p>\n<h3><strong><span data-preserver-spaces=\"true\">2. <\/span><\/strong>All-in-One <strong>Optimizer<\/strong> and Customizer<span style=\"font-size: 16px\" data-preserver-spaces=\"true\">\u00a0<\/span><\/h3>\n<h3><strong style=\"font-size: 16px\"><span data-preserver-spaces=\"true\"> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-197 size-full\" src=\"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/123-2-e1639995115873.jpg\" alt=\"\" width=\"883\" height=\"441\" srcset=\"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/123-2-e1639995115873.jpg 883w, https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/123-2-e1639995115873-300x150.jpg 300w, https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/123-2-e1639995115873-768x384.jpg 768w\" sizes=\"auto, (max-width: 883px) 100vw, 883px\" \/><\/span><\/strong><\/h3>\n<p><span data-preserver-spaces=\"true\">The next one is <a href=\"https:\/\/pro.crunchify.com\/all-in-one-optimizer-customizer\/\">All-in-One Optimizer, and Customizer plugins<\/a> have simple options to disable HTML from comments. Install and activate the plugin.<\/span><\/p>\n<p>Check our step-wise guide on <a href=\"https:\/\/hostkicker.com\/blog\/how-to-install-a-wordpress-plugin\">How to install WordPress plugin.<\/a><\/p>\n<p><span data-preserver-spaces=\"true\">Now, After installing the plugin<\/span><\/p>\n<ul>\n<li><span data-preserver-spaces=\"true\">Go to AIO Optimizer &gt;&gt; WP-Admin Tweaks page.<\/span><\/li>\n<li><span data-preserver-spaces=\"true\">Enable toggle &gt;&gt;Disable HTML from Comment.<\/span><\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-199 size-full\" src=\"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/How-to-Remove-HTML-from-Comment-in-WordPress-All-in-One-Optimizer-and-Customizer-aiooc-1536x567-1.png\" alt=\"\" width=\"1536\" height=\"567\" srcset=\"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/How-to-Remove-HTML-from-Comment-in-WordPress-All-in-One-Optimizer-and-Customizer-aiooc-1536x567-1.png 1536w, https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/How-to-Remove-HTML-from-Comment-in-WordPress-All-in-One-Optimizer-and-Customizer-aiooc-1536x567-1-300x111.png 300w, https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/How-to-Remove-HTML-from-Comment-in-WordPress-All-in-One-Optimizer-and-Customizer-aiooc-1536x567-1-1024x378.png 1024w, https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/How-to-Remove-HTML-from-Comment-in-WordPress-All-in-One-Optimizer-and-Customizer-aiooc-1536x567-1-768x284.png 768w\" sizes=\"auto, (max-width: 1536px) 100vw, 1536px\" \/><\/p>\n<h2><span data-preserver-spaces=\"true\">\u00a0Disable HTML in WordPress Comments By Using code.<\/span><\/h2>\n<p><span data-preserver-spaces=\"true\">1. Our first coding is given below. You have to follow simple steps to remove HTML tags.<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">open your\u00a0<\/span><em><span data-preserver-spaces=\"true\">functions.php<\/span><\/em><span data-preserver-spaces=\"true\">\u00a0and paste the code given below:<\/span><\/p>\n<pre><span data-preserver-spaces=\"true\"> \/\/ This will occur when the comment is posted<\/span>\r\n\r\n<span data-preserver-spaces=\"true\">\u00a0 \u00a0\u00a0function plc_comment_post( $incoming_comment ) {<\/span>\r\n\r\n<span data-preserver-spaces=\"true\">\u00a0<\/span>\r\n\r\n<span data-preserver-spaces=\"true\">\u00a0 \u00a0\u00a0\/\/ convert everything in a comment to display literally<\/span>\r\n\r\n<span data-preserver-spaces=\"true\">\u00a0 \u00a0\u00a0$incoming_comment['comment_content'] = htmlspecialchars($incoming_comment['comment_content']);<\/span>\r\n\r\n<span data-preserver-spaces=\"true\">\u00a0<\/span>\r\n\r\n<span data-preserver-spaces=\"true\">\u00a0 \u00a0\u00a0\/\/ the one exception is single quotes, which cannot be #039; because WordPress marks it as spam<\/span>\r\n\r\n<span data-preserver-spaces=\"true\">\u00a0 \u00a0\u00a0$incoming_comment['comment_content'] = str_replace( \"'\", '&amp;apos;', $incoming_comment['comment_content'] );<\/span>\r\n\r\n<span data-preserver-spaces=\"true\">\u00a0<\/span>\r\n\r\n<span data-preserver-spaces=\"true\">\u00a0 \u00a0\u00a0return( $incoming_comment );<\/span>\r\n\r\n<span data-preserver-spaces=\"true\">\u00a0 \u00a0\u00a0}<\/span>\r\n\r\n\r\n\r\n<span data-preserver-spaces=\"true\">\u00a0 \u00a0\u00a0\/\/ This will occur before a comment is displayed<\/span>\r\n\r\n<span data-preserver-spaces=\"true\">\u00a0 \u00a0\u00a0function plc_comment_display( $comment_to_display ) {<\/span>\r\n\r\n<span data-preserver-spaces=\"true\">\u00a0<\/span>\r\n\r\n<span data-preserver-spaces=\"true\">\u00a0 \u00a0\u00a0\/\/ Put the single quotes back in<\/span>\r\n\r\n<span data-preserver-spaces=\"true\">\u00a0 \u00a0\u00a0$comment_to_display = str_replace( '&amp;apos;', \"'\", $comment_to_display );<\/span>\r\n\r\n<span data-preserver-spaces=\"true\">\u00a0<\/span>\r\n\r\n<span data-preserver-spaces=\"true\">\u00a0 \u00a0\u00a0return $comment_to_display;<\/span>\r\n\r\n<span data-preserver-spaces=\"true\">}<\/span><\/pre>\n<p><span data-preserver-spaces=\"true\">2. You can use another code. This will help in removing\u00a0 HTML in WordPress comments. But this will only disable active HTML tags.<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">place this code in your\u00a0<\/span><em><span data-preserver-spaces=\"true\">functions.php<\/span><\/em><\/p>\n<pre><span data-preserver-spaces=\"true\">&lt;?php\u00a0<\/span>\r\n\r\n<span data-preserver-spaces=\"true\">function plc_comment_post( $incoming_comment ) {<\/span>\r\n\r\n<span data-preserver-spaces=\"true\">\u00a0\u00a0\/\/ convert everything in a comment to display literally<\/span>\r\n\r\n<span data-preserver-spaces=\"true\">\u00a0\u00a0$incoming_comment['comment_content'] = htmlspecialchars($incoming_comment['comment_content']);<\/span>\r\n\r\n<span data-preserver-spaces=\"true\">\u00a0\u00a0\/\/ the one exception is single quotes, which cannot be #039; because WordPress marks it as spam<\/span>\r\n\r\n<span data-preserver-spaces=\"true\">\u00a0\u00a0$incoming_comment['comment_content'] = str_replace( \"'\", '&amp;apos;', $incoming_comment['comment_content'] );<\/span>\r\n\r\n<span data-preserver-spaces=\"true\">\u00a0\u00a0return( $incoming_comment );<\/span>\r\n\r\n<span data-preserver-spaces=\"true\">}<\/span>\r\n\r\n<span data-preserver-spaces=\"true\">\/\/ This will occur before a comment is displayed<\/span>\r\n\r\n<span data-preserver-spaces=\"true\">function plc_comment_display( $comment_to_display ) {<\/span>\r\n\r\n<span data-preserver-spaces=\"true\">\u00a0\u00a0\/\/ Put the single quotes back in<\/span>\r\n\r\n<span data-preserver-spaces=\"true\">\u00a0\u00a0$comment_to_display = str_replace( '&amp;apos;', \"'\", $comment_to_display );<\/span>\r\n\r\n<span data-preserver-spaces=\"true\">\u00a0\u00a0return $comment_to_display;<\/span>\r\n\r\n<span data-preserver-spaces=\"true\">}<\/span>\r\n\r\n<span data-preserver-spaces=\"true\">add_filter( 'preprocess_comment', 'plc_comment_post', '', 1);<\/span>\r\n\r\n<span data-preserver-spaces=\"true\">add_filter( 'comment_text', 'plc_comment_display', '', 1);<\/span>\r\n\r\n<span data-preserver-spaces=\"true\">add_filter( 'comment_text_rss', 'plc_comment_display', '', 1);<\/span>\r\n\r\n<span data-preserver-spaces=\"true\">add_filter( 'comment_excerpt', 'plc_comment_display', '', 1);<\/span>\r\n\r\n<span data-preserver-spaces=\"true\">?&gt;\r\n<\/span><\/pre>\n<p><span data-preserver-spaces=\"true\"><strong>To conclude<\/strong>, if you want to remove\u00a0 HTML in WordPress comments, you can use any of your favorite options. If you like coding, you can do it manually; otherwise, do it by plugins. We hope this has helped you.<\/span><\/p>\n<p>You can also check our another post on <a href=\"https:\/\/hostkicker.com\/blog\/how-to-display-accurate-comment-count-on-wordpress\/\">how to display the most accurate comment on WordPress.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Read the post to learn how you can disable HTML in WordPress comments. If you keep a WordPress website that allows users or visitors to comment on your post, you must have faced spamming. So many people leave a comment with links that leads to Spam. Most of the spam comments are made by bots [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":277,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-190","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wp-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v19.3 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How To Disable HTML In WordPress Comments<\/title>\n<meta name=\"description\" content=\"This post talks about How to Disable HTML in WordPress Comments. The spam comments are made by bots using HTML tags. Remove it by plugin or..\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/hostkicker.com\/blog\/disable-html-in-wordpress-comments\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Disable HTML In WordPress Comments\" \/>\n<meta property=\"og:description\" content=\"This post talks about How to Disable HTML in WordPress Comments. The spam comments are made by bots using HTML tags. Remove it by plugin or..\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hostkicker.com\/blog\/disable-html-in-wordpress-comments\/\" \/>\n<meta property=\"og:site_name\" content=\"Hostkicker\" \/>\n<meta property=\"article:published_time\" content=\"2021-12-20T10:10:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-05-19T11:04:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/hostkicker-featured-image-8-01.png\" \/>\n\t<meta property=\"og:image:width\" content=\"693\" \/>\n\t<meta property=\"og:image:height\" content=\"511\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Olivia Smith\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Olivia Smith\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/disable-html-in-wordpress-comments\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/disable-html-in-wordpress-comments\\\/\"},\"author\":{\"name\":\"Olivia Smith\",\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/#\\\/schema\\\/person\\\/f06306b595baa96c90a0491b941d7660\"},\"headline\":\"How To Disable HTML In WordPress Comments\",\"datePublished\":\"2021-12-20T10:10:27+00:00\",\"dateModified\":\"2022-05-19T11:04:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/disable-html-in-wordpress-comments\\\/\"},\"wordCount\":464,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/disable-html-in-wordpress-comments\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/hostkicker-featured-image-8-01.png\",\"articleSection\":[\"Wp tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/hostkicker.com\\\/blog\\\/disable-html-in-wordpress-comments\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/disable-html-in-wordpress-comments\\\/\",\"url\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/disable-html-in-wordpress-comments\\\/\",\"name\":\"How To Disable HTML In WordPress Comments\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/disable-html-in-wordpress-comments\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/disable-html-in-wordpress-comments\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/hostkicker-featured-image-8-01.png\",\"datePublished\":\"2021-12-20T10:10:27+00:00\",\"dateModified\":\"2022-05-19T11:04:28+00:00\",\"description\":\"This post talks about How to Disable HTML in WordPress Comments. The spam comments are made by bots using HTML tags. Remove it by plugin or..\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/disable-html-in-wordpress-comments\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/hostkicker.com\\\/blog\\\/disable-html-in-wordpress-comments\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/disable-html-in-wordpress-comments\\\/#primaryimage\",\"url\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/hostkicker-featured-image-8-01.png\",\"contentUrl\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/hostkicker-featured-image-8-01.png\",\"width\":693,\"height\":511,\"caption\":\"How To Disable HTML In WordPress Comments\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/disable-html-in-wordpress-comments\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Disable HTML In WordPress Comments\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/\",\"name\":\"Hostkicker\",\"description\":\"Blog\",\"publisher\":{\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/#organization\",\"name\":\"Hostkicker\",\"url\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/hostkicker-logo-01.png\",\"contentUrl\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/hostkicker-logo-01.png\",\"width\":940,\"height\":218,\"caption\":\"Hostkicker\"},\"image\":{\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/#\\\/schema\\\/person\\\/f06306b595baa96c90a0491b941d7660\",\"name\":\"Olivia Smith\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/24a6b2466362238ad275f97a2f2fc49ce8d139c034114d6b9c52de1b12ebf1bd?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/24a6b2466362238ad275f97a2f2fc49ce8d139c034114d6b9c52de1b12ebf1bd?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/24a6b2466362238ad275f97a2f2fc49ce8d139c034114d6b9c52de1b12ebf1bd?s=96&d=mm&r=g\",\"caption\":\"Olivia Smith\"},\"url\":\"https:\\\/\\\/hostkicker.com\\\/blog\\\/author\\\/olivia\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How To Disable HTML In WordPress Comments","description":"This post talks about How to Disable HTML in WordPress Comments. The spam comments are made by bots using HTML tags. Remove it by plugin or..","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/hostkicker.com\/blog\/disable-html-in-wordpress-comments\/","og_locale":"en_US","og_type":"article","og_title":"How To Disable HTML In WordPress Comments","og_description":"This post talks about How to Disable HTML in WordPress Comments. The spam comments are made by bots using HTML tags. Remove it by plugin or..","og_url":"https:\/\/hostkicker.com\/blog\/disable-html-in-wordpress-comments\/","og_site_name":"Hostkicker","article_published_time":"2021-12-20T10:10:27+00:00","article_modified_time":"2022-05-19T11:04:28+00:00","og_image":[{"width":693,"height":511,"url":"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/hostkicker-featured-image-8-01.png","type":"image\/png"}],"author":"Olivia Smith","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Olivia Smith","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/hostkicker.com\/blog\/disable-html-in-wordpress-comments\/#article","isPartOf":{"@id":"https:\/\/hostkicker.com\/blog\/disable-html-in-wordpress-comments\/"},"author":{"name":"Olivia Smith","@id":"https:\/\/hostkicker.com\/blog\/#\/schema\/person\/f06306b595baa96c90a0491b941d7660"},"headline":"How To Disable HTML In WordPress Comments","datePublished":"2021-12-20T10:10:27+00:00","dateModified":"2022-05-19T11:04:28+00:00","mainEntityOfPage":{"@id":"https:\/\/hostkicker.com\/blog\/disable-html-in-wordpress-comments\/"},"wordCount":464,"commentCount":0,"publisher":{"@id":"https:\/\/hostkicker.com\/blog\/#organization"},"image":{"@id":"https:\/\/hostkicker.com\/blog\/disable-html-in-wordpress-comments\/#primaryimage"},"thumbnailUrl":"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/hostkicker-featured-image-8-01.png","articleSection":["Wp tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/hostkicker.com\/blog\/disable-html-in-wordpress-comments\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/hostkicker.com\/blog\/disable-html-in-wordpress-comments\/","url":"https:\/\/hostkicker.com\/blog\/disable-html-in-wordpress-comments\/","name":"How To Disable HTML In WordPress Comments","isPartOf":{"@id":"https:\/\/hostkicker.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/hostkicker.com\/blog\/disable-html-in-wordpress-comments\/#primaryimage"},"image":{"@id":"https:\/\/hostkicker.com\/blog\/disable-html-in-wordpress-comments\/#primaryimage"},"thumbnailUrl":"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/hostkicker-featured-image-8-01.png","datePublished":"2021-12-20T10:10:27+00:00","dateModified":"2022-05-19T11:04:28+00:00","description":"This post talks about How to Disable HTML in WordPress Comments. The spam comments are made by bots using HTML tags. Remove it by plugin or..","breadcrumb":{"@id":"https:\/\/hostkicker.com\/blog\/disable-html-in-wordpress-comments\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hostkicker.com\/blog\/disable-html-in-wordpress-comments\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hostkicker.com\/blog\/disable-html-in-wordpress-comments\/#primaryimage","url":"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/hostkicker-featured-image-8-01.png","contentUrl":"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/hostkicker-featured-image-8-01.png","width":693,"height":511,"caption":"How To Disable HTML In WordPress Comments"},{"@type":"BreadcrumbList","@id":"https:\/\/hostkicker.com\/blog\/disable-html-in-wordpress-comments\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/hostkicker.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How To Disable HTML In WordPress Comments"}]},{"@type":"WebSite","@id":"https:\/\/hostkicker.com\/blog\/#website","url":"https:\/\/hostkicker.com\/blog\/","name":"Hostkicker","description":"Blog","publisher":{"@id":"https:\/\/hostkicker.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/hostkicker.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/hostkicker.com\/blog\/#organization","name":"Hostkicker","url":"https:\/\/hostkicker.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hostkicker.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/hostkicker-logo-01.png","contentUrl":"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/hostkicker-logo-01.png","width":940,"height":218,"caption":"Hostkicker"},"image":{"@id":"https:\/\/hostkicker.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/hostkicker.com\/blog\/#\/schema\/person\/f06306b595baa96c90a0491b941d7660","name":"Olivia Smith","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/24a6b2466362238ad275f97a2f2fc49ce8d139c034114d6b9c52de1b12ebf1bd?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/24a6b2466362238ad275f97a2f2fc49ce8d139c034114d6b9c52de1b12ebf1bd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/24a6b2466362238ad275f97a2f2fc49ce8d139c034114d6b9c52de1b12ebf1bd?s=96&d=mm&r=g","caption":"Olivia Smith"},"url":"https:\/\/hostkicker.com\/blog\/author\/olivia\/"}]}},"jetpack_featured_media_url":"https:\/\/hostkicker.com\/blog\/wp-content\/uploads\/2021\/12\/hostkicker-featured-image-8-01.png","_links":{"self":[{"href":"https:\/\/hostkicker.com\/blog\/wp-json\/wp\/v2\/posts\/190","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hostkicker.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hostkicker.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hostkicker.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/hostkicker.com\/blog\/wp-json\/wp\/v2\/comments?post=190"}],"version-history":[{"count":15,"href":"https:\/\/hostkicker.com\/blog\/wp-json\/wp\/v2\/posts\/190\/revisions"}],"predecessor-version":[{"id":2042,"href":"https:\/\/hostkicker.com\/blog\/wp-json\/wp\/v2\/posts\/190\/revisions\/2042"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hostkicker.com\/blog\/wp-json\/wp\/v2\/media\/277"}],"wp:attachment":[{"href":"https:\/\/hostkicker.com\/blog\/wp-json\/wp\/v2\/media?parent=190"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hostkicker.com\/blog\/wp-json\/wp\/v2\/categories?post=190"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hostkicker.com\/blog\/wp-json\/wp\/v2\/tags?post=190"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}