Replace an H2 heading's text content by locating it via its id attribute. Uses indexOf-based search to avoid polynomial regex backtracking (CodeQL).
id
Full HTML string
The id attribute value of the target <h2>
<h2>
The English title text to replace
The localized title to insert
Updated HTML string
Replace an H2 heading's text content by locating it via its
idattribute. Uses indexOf-based search to avoid polynomial regex backtracking (CodeQL).