{"id":1000386,"date":"2007-02-01T09:03:21","date_gmt":"2007-02-01T14:03:21","guid":{"rendered":"http:\/\/www.elharo.com\/blog\/software-development\/xml\/2007\/02\/01\/google-docs-and-the-string-tag\/"},"modified":"2007-02-01T09:23:14","modified_gmt":"2007-02-01T14:23:14","slug":"google-docs-and-the-string-tag","status":"publish","type":"post","link":"https:\/\/www.elharo.com\/blog\/software-development\/xml\/2007\/02\/01\/google-docs-and-the-string-tag\/","title":{"rendered":"Google Docs and the &lt;string> tag"},"content":{"rendered":"<p>I was debugging some problems <a href=\"http:\/\/cafe.elharo.com\/java\/cice-not-so-nice\/\">quoting a piece<\/a> of a <a href=\"http:\/\/docs.google.com\/Doc.aspx?id=k73_1ggr36h\">Google Doc article<\/a> when I noticed something funny in their HTML source, an apparent <code>string<\/code> bogon. For example:<\/p>\n<p><code>&lt;pre>    List&amp;lt;String&amp;gt;<strong>&lt;string><\/strong> ls = ... ;&lt;br\/>    Collections.sort(ls, new Comparator&amp;lt;String&amp;gt;() {&lt;br\/>        public int compare(String s1, String s2) {&lt;br\/>            return s1.length() - s2.length();&lt;br\/>        }&lt;br\/>    });&lt;br\/><strong>&lt;\/string><\/strong>&lt;\/pre><\/code><\/p>\n<p>In context, I think this is really a tag, not a badly escaped piece of the source document. A little googling didn&#8217;t find any information about it. I&#8217;m fairly sure this was never a real HTML tag or a browser extension, though I could have missed one somewhere. Can anyone shed some light on this?<br \/>\n<!--more--><\/p>\n<p>Is this unique to this one page, or does this appear in other Google Docs pages as well? Does anyone have links to any other public Google docs pages? I couldn&#8217;t find any, which is in itself a little surprising. Are only Google employees allowed to make their docs public from Google servers><\/p>\n<p>I tried editing a page or two myself, and I wasn&#8217;t able to make this tag appear. Perhaps it was just manually inserted by the authors for their own purposes? <\/p>\n<p><abbr>FWIW<\/abbr>, the page in question is not well-formed HTML or XHTML. However, aside from this tag it&#8217;s pretty standard HTML, though it does overuse the <code>br<\/code> element.  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was debugging some problems quoting a piece of a Google Doc article when I noticed something funny in their HTML source, an apparent string bogon. For example: &lt;pre> List&amp;lt;String&amp;gt;&lt;string> ls = &#8230; ;&lt;br\/> Collections.sort(ls, new Comparator&amp;lt;String&amp;gt;() {&lt;br\/> public int compare(String s1, String s2) {&lt;br\/> return s1.length() &#8211; s2.length();&lt;br\/> }&lt;br\/> });&lt;br\/>&lt;\/string>&lt;\/pre> In context, I think [&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":[410],"class_list":["post-1000386","post","type-post","status-publish","format-standard","hentry","category-xml","tag-flash"],"_links":{"self":[{"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/posts\/1000386","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/comments?post=1000386"}],"version-history":[{"count":0,"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/posts\/1000386\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/media?parent=1000386"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/categories?post=1000386"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/tags?post=1000386"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}