- sanitizing the xml chars
This commit is contained in:
1 parent
d74bf1eaa9
commit
ac49ad1bcf
4 files changed
+4
-4
No files matched your search
@@ -86,7 +86,7 @@ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
"""
|
||||
__version__ = (1, 1, 9)
|
||||
__version__ = (1, 1, 10)
|
||||
|
||||
if __name__ == '__main__':
|
||||
print(
|
||||
|
||||
@@ -131,7 +131,7 @@ class XMLConverter(PDFConverter):
|
||||
'y0': char.y0,
|
||||
'y1': char.y1,
|
||||
}, no_additional_char=True):
|
||||
self.write(char.get_text(), lineend='', deep_space="")
|
||||
self.write(saxutils.escape(char.get_text()), lineend='', deep_space="")
|
||||
|
||||
def render_char_block(self, char_block: LTCharBlock):
|
||||
attr = {
|
||||
|
||||
Reference in new issue
Block a user