Skip to content

Italicized link text may pull closing tag inside link #47

@rushed

Description

@rushed

Description

Source with italicized link text may pull closing tag inside link, ex incorrect output (note </em></a>): accordance with <em><a href="https://www.govinfo.gov/link/uscode/5/552" class="usc external" target="_blank" rel="noopener noreferrer">5 U.S.C. 552(a)</em></a> and <em><a href="/current/title-1/part-51" class="cfr external">1 CFR part 51</a></em>. To enforce

         with_surrounding_text: "in accordance with <em>5 U.S.C. 552(a)</em> and <em>1 CFR part 51</em>. To enforce",
         citations: [
          {title: "5", section: "552", paragraph: "(a)"},
          {title: "1", part: "51"},
         ],
         expected_html: 'in accordance with <em><a href="https://www.govinfo.gov/link/uscode/5/552" class="usc external" target="_blank" rel="noopener noreferrer">5 U.S.C. 552(a)</a></em> and <em><a href="/current/title-1/part-51" class="cfr external">1 CFR part 51</a></em>. To enforce'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions