mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Modify airframe gen to use html.escape
This commit is contained in:
parent
d2eefbf2fb
commit
59a1148aec
@ -1,6 +1,7 @@
|
||||
from xml.sax.saxutils import escape
|
||||
import codecs
|
||||
import os
|
||||
import html
|
||||
|
||||
class MarkdownTablesOutput():
|
||||
def __init__(self, groups, board, image_path):
|
||||
@ -89,7 +90,7 @@ class MarkdownTablesOutput():
|
||||
maintainer = param.GetMaintainer()
|
||||
maintainer_entry = ''
|
||||
if maintainer != '':
|
||||
maintainer_entry = '<p>Maintainer: %s</p>' % (maintainer.replace('<', '<').replace('>', '>'))
|
||||
maintainer_entry = '<p>Maintainer: %s</p>' % (html.escape(maintainer))
|
||||
url = param.GetFieldValue('url')
|
||||
name_anchor='id="%s_%s_%s"' % (group.GetClass(),group.GetName(),name)
|
||||
name_anchor=name_anchor.replace(' ','_').lower()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user