{"id":155,"date":"2009-09-03T21:33:27","date_gmt":"2009-09-03T20:33:27","guid":{"rendered":"http:\/\/thedifficultbit.com\/?p=155"},"modified":"2018-12-24T22:02:05","modified_gmt":"2018-12-24T21:02:05","slug":"a-test-string-to-break-stuff","status":"publish","type":"post","link":"https:\/\/thedifficultbit.com\/?p=155","title":{"rendered":"A Test String to Break Stuff"},"content":{"rendered":"\n<p>I use this string both in unit tests and when testing an application directly: <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Z&lt;XD> &amp; \u043a\u043e\u0442' &lt;b>\u00a3&lt;\/b>{a}<\/code><\/pre>\n\n\n\n<p>Analysis:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>&#8220;Z&#8221;: starts with a normal letter.<\/li><li>&#8220;&lt;XD>&#8221;: this is not a well-formed XHTML\/XML element as it is not closed.<\/li><li>&#8220;&amp;&#8221;: will blow up XML parsing as it is not escaped.<\/li><li>&#8220;\u043a\u043e\u0442&#8221; Russian characters that will not display correctly if Unicode is not handled properly.<\/li><li>&#8220;&#8216;&#8221; single quote will break SQL if injected into a SQL statement.<\/li><li>&#8220;&lt;b>\u00a3&lt;\/b>&#8221; will display a bold character if used as HTML and not escaped correctly.<\/li><li>&#8220;{a}&#8221; will cause exception if string is used as the target of a string format.<\/li><\/ul>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I use this string both in unit tests and when testing an application directly: Analysis: &#8220;Z&#8221;: starts with a normal letter. &#8220;&lt;XD>&#8221;: this is not a well-formed XHTML\/XML element as it is not closed. &#8220;&amp;&#8221;: will blow up XML parsing as it is not escaped. &#8220;\u043a\u043e\u0442&#8221; Russian characters that will not display correctly if Unicode [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[14],"class_list":["post-155","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-testing"],"_links":{"self":[{"href":"https:\/\/thedifficultbit.com\/index.php?rest_route=\/wp\/v2\/posts\/155","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thedifficultbit.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thedifficultbit.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thedifficultbit.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thedifficultbit.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=155"}],"version-history":[{"count":4,"href":"https:\/\/thedifficultbit.com\/index.php?rest_route=\/wp\/v2\/posts\/155\/revisions"}],"predecessor-version":[{"id":159,"href":"https:\/\/thedifficultbit.com\/index.php?rest_route=\/wp\/v2\/posts\/155\/revisions\/159"}],"wp:attachment":[{"href":"https:\/\/thedifficultbit.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=155"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thedifficultbit.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=155"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thedifficultbit.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=155"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}