Skip to content

phone link with href tel: attribute - bad render #326

Description

@tatsmaki

Minimal HTML example

Cell <a href="tel:+12125550132">+1-212-555-0132</a>
<br />
Work <a href="tel:(310)5550123">(310) 555-0123</a>

Observed output

  1. href tel: attribute is displayed
  2. it displays invalid content
Cell +1-212-555-0132 tel:+1-212-555-0132
Work (310) 555-0123 tel:(310) 555-0123

Expected output
Do not display href tel: attribute (same as mailto: works currently)

Cell +1-212-555-0132
Work (310) 555-0123

Version information

  • html-to-text: v9.0.5
  • node: v20.19.6

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions