elifesciences / decision-letter-parser

Parse docx file containing decision letter and author response content and produce output in other formats
MIT License
0 stars 0 forks source link

Detect problem characters rather than convert them #135

Closed gnott closed 2 years ago

gnott commented 2 years ago

Re issue https://github.com/elifesciences/issues/issues/7432

Some of the characters previously replaced with character entities were still causing problems. Instead of converting the characters, add functions to help detecting whether the characters are present. These can be invoked in the workflow to send an error message when problem characters are found in the XML string.