{"id":674,"date":"2016-12-22T14:31:35","date_gmt":"2016-12-22T14:31:35","guid":{"rendered":"https:\/\/ibex.tech\/windows-iot\/?p=307"},"modified":"2022-09-13T14:51:02","modified_gmt":"2022-09-13T13:51:02","slug":"converting-strings","status":"publish","type":"post","link":"https:\/\/ibex.tech\/csharp\/uwp-programming-in-c\/strings-uwp-programming-in-c\/converting-strings","title":{"rendered":"Converting Strings"},"content":{"rendered":"<h4>\n\tHTML Encode \/ Decode strings<\/h4>\n<pre><code>\n\tstring MyString = \"&lt;hello&gt;\";\n\tMyString = WebUtility.HtmlEncode(MyString);\n<\/code><\/pre>\n<pre><code>\n\tstring MyString = \"&amp;lt;hello&amp;gt;\";\n\tMyString = WebUtility.HtmlDecode(MyString);\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>HTML Encode \/ Decode strings string MyString = &#8220;&lt;hello&gt;&#8221;; MyString = WebUtility.HtmlEncode(MyString); string MyString = &#8220;&amp;lt;hello&amp;gt;&#8221;; MyString = WebUtility.HtmlDecode(MyString); &nbsp;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[127],"tags":[],"class_list":["post-674","post","type-post","status-publish","format-standard","hentry","category-strings-uwp-programming-in-c"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/674","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/comments?post=674"}],"version-history":[{"count":1,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/674\/revisions"}],"predecessor-version":[{"id":1156,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/674\/revisions\/1156"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/media?parent=674"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/categories?post=674"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/tags?post=674"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}