{"id":56,"date":"2005-06-17T17:53:09","date_gmt":"2005-06-17T07:53:09","guid":{"rendered":"http:\/\/www.thunderguy.com\/semicolon\/?p=56"},"modified":"2005-06-23T10:07:29","modified_gmt":"2005-06-23T00:07:29","slug":"safe-title-wordpress-plugin","status":"publish","type":"post","link":"https:\/\/thunderguy.com\/semicolon\/2005\/06\/17\/safe-title-wordpress-plugin\/","title":{"rendered":"Safe Title: a WordPress plugin"},"content":{"rendered":"<p>Here&#8217;s an amusing hack to fix a niggling problem in the WordPress default theme. I came up with this soon after I started using WordPress, but I recently noticed that this small annoyance had generated a <a href=\"http:\/\/mathibus.com\/archive\/2005\/05\/html-in-post-titles\">discussion on Mathibus.com<\/a>. My fully automatic solution is now ready for a waiting world.<\/p>\n<p>When posting to your WordPress blog, sometimes you just want to use HTML in the title. You want to make some words stand out with <span style=\"color:red\">color<\/span>, or use <i>italics<\/i> or a <code>code<\/code> font. (Here&#8217;s an <a href=\"\/semicolon\/2003\/08\/14\/java-sql-date-is-not-a-real-date\/\">example of an HTML post title<\/a> on this very website.)<\/p>\n<p>Sadly, the default theme included with WordPress 1.5 can&#8217;t handle this; it fails to strip HTML tags from the title when it appears inside an HTML attribute, leading to deformed page titles. As an experiment, I wrote a plugin to solve this problem without requiring any changes to the default theme.<\/p>\n<p>For full details and download, see the main <a href=\"http:\/\/www.thunderguy.com\/semicolon\/wordpress\/safe-title-wordpress-plugin\/\">Safe Title<\/a> page.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here&#8217;s an amusing hack to fix a niggling problem in the WordPress default theme. I came up with this soon after I started using WordPress, but I recently noticed that this small annoyance had generated a discussion on Mathibus.com. My fully automatic solution is now ready for a waiting world. When posting to your WordPress [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[83],"class_list":["post-56","post","type-post","status-publish","format-standard","hentry","category-wordpress","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/thunderguy.com\/semicolon\/wp-json\/wp\/v2\/posts\/56","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thunderguy.com\/semicolon\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thunderguy.com\/semicolon\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thunderguy.com\/semicolon\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thunderguy.com\/semicolon\/wp-json\/wp\/v2\/comments?post=56"}],"version-history":[{"count":0,"href":"https:\/\/thunderguy.com\/semicolon\/wp-json\/wp\/v2\/posts\/56\/revisions"}],"wp:attachment":[{"href":"https:\/\/thunderguy.com\/semicolon\/wp-json\/wp\/v2\/media?parent=56"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thunderguy.com\/semicolon\/wp-json\/wp\/v2\/categories?post=56"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thunderguy.com\/semicolon\/wp-json\/wp\/v2\/tags?post=56"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}