{"id":57,"date":"2003-10-28T01:47:00","date_gmt":"2003-10-28T01:47:00","guid":{"rendered":"http:\/\/jclark.org\/weblog\/Programming\/Perl\/rtf2html.html"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-30T04:00:00","slug":"rtf2html","status":"publish","type":"post","link":"https:\/\/jclark.org\/weblog\/2003\/10\/28\/rtf2html\/","title":{"rendered":"rtf2html.pl"},"content":{"rendered":"<p>I recently needed to convert some <span class=\"caps\">RTF<\/span> stored in a database to html (xhtml)&#8230; or least into xhtml fragments that could be wrapped inside a <\/p>\n<p>It&#8217;s a quick-and-dirty hack.  It&#8217;s probably too verbose, and misses common Perl idioms.  On the plus side, it works (<em>always<\/em> a plus).  If you&#8217;re an experience perl guru and see anywhere I should have used a standard perl idiom, please drop a comment.  I&#8217;m not looking for obfuscation-contest entries, just things I&#8217;m doing the hard (or verbose) way.    <\/p>","protected":false},"excerpt":{"rendered":"<p>I recently needed to convert some RTF stored in a database to html (xhtml)&#8230; or least into xhtml fragments that could be wrapped inside a It&#8217;s a quick-and-dirty hack. It&#8217;s probably too verbose, and misses common Perl idioms. On the plus side, it works (always a plus). If you&#8217;re an experience perl guru and see [&hellip;]<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-57","post","type-post","status-publish","format-standard","hentry","category-perl"],"_links":{"self":[{"href":"https:\/\/jclark.org\/weblog\/wp-json\/wp\/v2\/posts\/57","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jclark.org\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jclark.org\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jclark.org\/weblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jclark.org\/weblog\/wp-json\/wp\/v2\/comments?post=57"}],"version-history":[{"count":0,"href":"https:\/\/jclark.org\/weblog\/wp-json\/wp\/v2\/posts\/57\/revisions"}],"wp:attachment":[{"href":"https:\/\/jclark.org\/weblog\/wp-json\/wp\/v2\/media?parent=57"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jclark.org\/weblog\/wp-json\/wp\/v2\/categories?post=57"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jclark.org\/weblog\/wp-json\/wp\/v2\/tags?post=57"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}