safely write texts into XML

Some replacements should be done to texts, that are written into XML:

- replace any <br> element with a line break
- remove any other xml / html element
- replace any left "<" with "«"
- replace any left ">" with "»"