aboutsummaryrefslogtreecommitdiff
path: root/tools/doc/html.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/doc/html.js')
-rw-r--r--tools/doc/html.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/doc/html.js b/tools/doc/html.js
index f2be43a38b..d65a4b323a 100644
--- a/tools/doc/html.js
+++ b/tools/doc/html.js
@@ -198,7 +198,10 @@ function preprocessElements({ filename }) {
heading.children = [{
type: 'text',
value: file.contents.slice(
- position.start.offset, position.end.offset),
+ position.start.offset, position.end.offset)
+ .replace('&lt;', '<')
+ .replace('&gt;', '>')
+ .replace(/\\(.{1})/g, '$1'),
position
}];
}