ox-html Incorrectly (?) Puts HTML Into the `` Tag</span></a></span> </h1> <p class="darkgray font13"> <span class="sender pipe"><a href="/search?l=emacs-orgmode@gnu.org&q=from:%22Tim+Visher%22" rel="nofollow"><span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">Tim Visher</span></span></a></span> <span class="date"><a href="/search?l=emacs-orgmode@gnu.org&q=date:20210111" rel="nofollow">Mon, 11 Jan 2021 07:38:28 -0800</a></span> </p> </div> <div itemprop="articleBody" class="msgBody"> <!--X-Body-of-Message--> <pre>Hi all, I noticed over the weekend that the `<title>` tag in an ox-html document is populated with HTML when inline formatting like bold or italics is used. I'm running org 9.4.4 but even on HEAD <<a rel="nofollow" href="https://code.orgmode.org/bzg/org-mode/src/9ea7ff5e2f8f9f280f8022cade62c1a3bba1478c/lisp/ox-html.el#L2092-L2111">https://code.orgmode.org/bzg/org-mode/src/9ea7ff5e2f8f9f280f8022cade62c1a3bba1478c/lisp/ox-html.el#L2092-L2111</a>> this behavior seems to be the same where `(org-export-data title …)` is used to populate the title rather than something that would render the title textually.</pre><pre> My understanding from MDN <<a rel="nofollow" href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/title">https://developer.mozilla.org/en-US/docs/Web/HTML/Element/title</a>> is that `title` tags should never contain markup. Is this something we'd take a patch for? My thought is that the title should be converted using the text backend by default, perhaps with a configuration variable that would let you specify a different one (for instance markdown) but I wouldn't go that far at first. Of course at minimum since org is textual it could just use the title without exporting at all but I think that doesn't go far enough. The other possibility would be to somehow strip all special characters from the title but I think that goes much too far. Thanks in advance! -- In Christ, Timmy V. <a rel="nofollow" href="https://blog.twonegatives.com">https://blog.twonegatives.com</a> <a rel="nofollow" href="http://five.sentenc.es">http://five.sentenc.es</a> </pre> </div> <div class="msgButtons margintopdouble"> <ul class="overflow"> <li class="msgButtonItems"><a class="button buttonleft " accesskey="p" href="msg133501.html">Previous message</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="c" href="thrd8.html#133514">View by thread</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="i" href="mail9.html#133514">View by date</a></li> <li class="msgButtonItems textalignright"><a class="button buttonright " accesskey="n" href="msg133521.html">Next message</a></li> </ul> </div> <a name="tslice"></a> <div class="tSliceList margintopdouble"> <ul class="icons monospace"> <li class="icons-email tSliceCur"><span class="subject">ox-html Incorrectly (?) Puts HTML Into the `<title&...</span> <span class="sender italic">Tim Visher</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg133521.html">Re: ox-html Incorrectly (?) Puts HTML Into the `&...</a></span> <span class="sender italic">Kyle Meyer</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg133527.html">Re: ox-html Incorrectly (?) Puts HTML Into th...</a></span> <span class="sender italic">Tim Visher</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg133538.html">Re: ox-html Incorrectly (?) Puts HTML Int...</a></span> <span class="sender italic">Kyle Meyer</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg133550.html">Re: ox-html Incorrectly (?) Puts HTML...</a></span> <span class="sender italic">Tim Visher</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg133653.html">Re: ox-html Incorrectly (?) Puts...</a></span> <span class="sender italic">Kyle Meyer</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg134730.html">Re: ox-html Incorrectly (?) ...</a></span> <span class="sender italic">Tim Visher</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg134987.html">Re: ox-html Incorrectly ...</a></span> <span class="sender italic">Tim Visher</span></li> <li class="icons-email"><span class="subject"><a href="msg135141.html">Re: ox-html Incorrectly ...</a></span> <span class="sender italic">Kyle Meyer</span></li> <li class="icons-email"><span class="subject"><a href="msg135155.html">Re: ox-html Incorrectly ...</a></span> <span class="sender italic">Jens Lechtenboerger</span></li> <li class="icons-email"><span class="subject"><a href="msg135171.html">Re: ox-html Incorrectly ...</a></span> <span class="sender italic">Tim Visher</span></li> </ul> </ul> </ul> </ul> </ul> </ul> </ul> </ul> </div> <div class="overflow msgActions margintopdouble"> <div class="msgReply" > <h2> Reply via email to </h2> <form method="POST" action="/mailto.php"> <input type="hidden" name="subject" value="ox-html Incorrectly (?) Puts HTML Into the `<title>` Tag"> <input type="hidden" name="msgid" value="CAHa53uwWmy0uu9SwsOge-==i3nW2Sa1pLeXQXPOU=PnxXH9rDA@mail.gmail.com"> <input type="hidden" name="relpath" value="emacs-orgmode@gnu.org/msg133514.html"> <input type="submit" value=" Tim Visher "> </form> </div> </div> </div> <div class="aside" role="complementary"> <div class="logo"> <a href="/"><img src="/logo.png" width=247 height=88 alt="The Mail Archive"></a> </div> <form class="overflow" action="/search" method="get"> <input type="hidden" name="l" value="emacs-orgmode@gnu.org"> <label class="hidden" for="q">Search the site</label> <input class="submittext" type="text" id="q" name="q" placeholder="Search emacs-orgmode"> <input class="submitbutton" name="submit" type="image" src="/submit.png" alt="Submit"> </form> <div class="nav margintop" id="nav" role="navigation"> <ul class="icons font16"> <li class="icons-home"><a href="/">The Mail Archive home</a></li> <li class="icons-list"><a href="/emacs-orgmode@gnu.org/">emacs-orgmode - all messages</a></li> <li class="icons-about"><a href="/emacs-orgmode@gnu.org/info.html">emacs-orgmode - about the list</a></li> <li class="icons-expand"><a href="/search?l=emacs-orgmode@gnu.org&q=subject:%22ox%5C-html+Incorrectly+%5C%28%5C%3F%5C%29+Puts+HTML+Into+the+%60%3Ctitle%3E%60+Tag%22&o=newest&f=1" title="e" id="e">Expand</a></li> <li class="icons-prev"><a href="msg133501.html" title="p">Previous message</a></li> <li class="icons-next"><a href="msg133521.html" title="n">Next message</a></li> </ul> </div> <div class="listlogo margintopdouble"> </div> <div class="margintopdouble"> </div> </div> </div> <div class="footer" role="contentinfo"> <ul> <li><a href="/">The Mail Archive home</a></li> <li><a href="/faq.html#newlist">Add your mailing list</a></li> <li><a href="/faq.html">FAQ</a></li> <li><a href="/faq.html#support">Support</a></li> <li><a href="/faq.html#privacy">Privacy</a></li> <li class="darkgray">CAHa53uwWmy0uu9SwsOge-==i3nW2Sa1pLeXQXPOU=PnxXH9rDA@mail.gmail.com</li> </ul> </div> </body> </html>