Issue Task Resolved

#111130Use native offsets when scanning HTML and placeholders

Wouter Wolters 10/18/26, 11:50 updated 10/18/26, 14:30

Description

Use strcspn() offsets in HtmlParser and ContentObjectRenderer instead of copying the remaining string with substr() before each scan. Preserve existing parsing behavior, including incomplete tags and placeholders, and cover delimiter boundaries, Unicode and binary content. Benchmarks show reduced parsing time for long, tag-heavy HTML.

Reviews 1

History 12

  1. Wouter Wolters commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-10-18T14:30:19+00:00" > 10/18/26, 14:30 </span>

    Applied in changeset commit:7b2169c09caf30073415efd68ab60c069d9adc78.