{"id":7102,"date":"2022-10-11T18:12:33","date_gmt":"2022-10-11T15:12:33","guid":{"rendered":"https:\/\/mummila.net\/kommentit\/?p=7102"},"modified":"2022-10-11T18:12:33","modified_gmt":"2022-10-11T15:12:33","slug":"no-way-to-escape-a-word-starting-hash-character-in-plaintext","status":"publish","type":"post","link":"https:\/\/mummila.net\/kommentit\/2022\/10\/11\/no-way-to-escape-a-word-starting-hash-character-in-plaintext\/","title":{"rendered":"No way to escape a word-starting hash character (#) in plaintext"},"content":{"rendered":"<h4 dir=\"auto\">Summary<\/h4>\n<p dir=\"auto\">There is no way to escape a word-starting hash character (#) in plaintext.<\/p>\n<h4 dir=\"auto\">Steps to reproduce<\/h4>\n<p dir=\"auto\">In MM 7.3.0, post this, verbatim: \\#anything<\/p>\n<h4 dir=\"auto\">Expected behavior<\/h4>\n<p dir=\"auto\">#anything<\/p>\n<h4 dir=\"auto\">Observed behavior (that appears unintentional)<\/h4>\n<p dir=\"auto\"><a href=\"https:\/\/github.com\/mattermost\/mattermost-server\/issues\/new#anything\">#anything<\/a><\/p>\n<h4 dir=\"auto\">Possible fixes<\/h4>\n<p dir=\"auto\">Workaround: instead of &#8221;\\#anything&#8221;, post this: &amp;#\u200b35;anything<\/p>\n<p dir=\"auto\">Using backticks (`\\#anything`) also works, but obviously the word then gets formatted as code and not plaintext.<\/p>\n<h4 dir=\"auto\">Other notes<\/h4>\n<p dir=\"auto\">This is mainly an issue of inconsistency and surprise: backslash works to escape most other special formatting, so I&#8217;d expect it to work here too.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is mainly an issue of inconsistency and surprise: backslash works to escape most other special formatting, so I&#8217;d expect it to work here too.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8860],"tags":[14049],"class_list":["post-7102","post","type-post","status-publish","format-standard","hentry","category-vianhallintajarjestelmat","tag-mattermost","sijainti-github"],"_links":{"self":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/7102","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/comments?post=7102"}],"version-history":[{"count":1,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/7102\/revisions"}],"predecessor-version":[{"id":7103,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/7102\/revisions\/7103"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/media?parent=7102"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/categories?post=7102"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/tags?post=7102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}