We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
let element:HTMLElement = HTMLElement(tagName: "div") element.innerHTML = "Line<br/>Breaks" print("\(element.textContent)")
output:
LineBreaks
desired:
Line\nBreaks
At leas this is how NSAttributedString's initWithHTML works. Anything I need to do to get this to work properly?
NSAttributedString
initWithHTML