Parsing string like <em> some <red>important</red> text.</em>
Hi,
BonMot works great. It is really faster then attributedText. But I would like to highlight a text like
<em> some <red>important</red> text. </em>
Any idea, how to solve it?
Greetings
Petr
This should work if you use XML attributes. If it's not working for you, could you please post some code demonstrating the problem?
@phracek were you able to get this working?
Code for text generation is here: https://github.com/phracek/Katechismus_katolicke_cirkve_iOS/blob/develop/KatechismusKatolickeCirkve/KatechismusKatolickeCirkve/Utilities/GeneratorText.swift
Code for replacing text is: https://github.com/phracek/Katechismus_katolicke_cirkve_iOS/blob/develop/KatechismusKatolickeCirkve/KatechismusKatolickeCirkve/Controllers/ParagraphTableViewController.swift#L252
3rd item in my appliaction finds a word in database https://github.com/phracek/Katechismus_katolicke_cirkve_iOS/blob/develop/KatechismusKatolickeCirkve/KatechismusKatolickeCirkve/Supporting%20Files/database.json