Back to API Reference
Class
LineBreakParseRule
sealed
Replaces every occurrence of the void <br> tag with a hard line break.
Remarks
Matches <br>, <br/>, and <br /> case-insensitively, mirroring the HTML void-element contract: there is no closing tag, no nested content, and the element renders nothing of its own. The tag is stripped and a single line-feed (U+000A) is written into the parsed text in its place. Once inserted, the line-feed is consumed by the regular UAX #14 mandatory-break path, so the new line keeps the surrounding paragraph's direction, alignment, and styling — the tag forces a line wrap, not a paragraph reset. Because the rule does not pair with a modifier, it is registered as a standalone rule.
