X-Git-Url: https://harishankar.org/repos/?p=biaweb2.git;a=blobdiff_plain;f=biawebdocumenttree.hpp;h=66dcd9f7eea322b22e2a9c2a31c431997bf62e09;hp=7c44634f4ac4233748017920bc497a6144970cc7;hb=fe9a0fef0b31ee3b94b3e73b7e319087a49a3054;hpb=b6425f960a30045333fb2ef531832a0b5858200d diff --git a/biawebdocumenttree.hpp b/biawebdocumenttree.hpp index 7c44634..66dcd9f 100644 --- a/biawebdocumenttree.hpp +++ b/biawebdocumenttree.hpp @@ -39,7 +39,7 @@ namespace biaweb { // create new top level document tree DocumentTree (std::string title, std::string stub = "") { - this->title = title; + this->title = escape_html (title); // if stub is not empty set it if (stub != "") this->stub = stub; @@ -74,7 +74,7 @@ namespace biaweb { // set the title void set_title (std::string title) { - this->title = title; + this->title = escape_html (title); // if no stub is set if (this->stub == "") this->stub = convert_title (title);