projects
/
biaweb2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed the rendering code for templating output
[biaweb2.git]
/
biawebdocumenttree.hpp
diff --git
a/biawebdocumenttree.hpp
b/biawebdocumenttree.hpp
index
7c44634
..
66dcd9f
100644
(file)
--- 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 = "") {
// 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;
// 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) {
// 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);
// if no stub is set
if (this->stub == "")
this->stub = convert_title (title);