Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linkifyjs/html converting first letter to lowerCase #270

Closed
nosleepfilipe opened this issue Apr 9, 2019 · 1 comment
Closed

linkifyjs/html converting first letter to lowerCase #270

nosleepfilipe opened this issue Apr 9, 2019 · 1 comment
Labels
Milestone

Comments

@nosleepfilipe
Copy link

I have this information saved on my DB

{
    "_id" : "123",
    "user_id" : "123",
    "body_raw" : "$xyz",
    "body" : "<ReactComponent tag=\"xyz\" /> www.github.com",
}

and i have this code to run on each record on my collection

    doc.body = linkifyHtml doc.body,
      target     : '_blank'
      tagName    : 'ReactComponentUrl'
      ignoreTags : ['ReactComponent']
      className  : null
      validate   : email : off

and the result of this is

<reactComponent tag="xyz" /> <ReactComponentUrl href="www.github.com" target="_blank">www.github.com</ReactComponentUrl>

Strange why is lowering the first letter even when i ignore that tag.
Is there a way to achieve that?
I'm using a react parser to load the components dynamically, like the one ReactComponent

@nfrasser nfrasser added this to the 3.0 milestone Mar 8, 2021
@nfrasser nfrasser added the bug label Mar 11, 2021
@nfrasser nfrasser mentioned this issue Mar 11, 2021
@nfrasser
Copy link
Owner

Fixed in v3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants