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

How to ignore trim the value between the tags? #261

Closed
ibnukipa opened this issue May 12, 2019 · 2 comments
Closed

How to ignore trim the value between the tags? #261

ibnukipa opened this issue May 12, 2019 · 2 comments
Labels

Comments

@ibnukipa
Copy link

Asking for the clarity

I've read to README, entirety. I didn't find any question/thread regarding this.
How to ignore trim the value between the tags?

example:

this is a link <a href="https://google.com" type="link" label="https://google.co">https://google.co</a> <a href="/user/view/180" type="mention" label="Risal">Risal</a>

it's the same if I use renderers function or use the default render, the space between tag is trimmed somehow.

It's possible to ignore the trimming?

libs:
"react-native-render-html": "^4.1.2",
"react": "16.5.0",
"react-native": "latest",

@grnkvch
Copy link

grnkvch commented May 20, 2019

You can replace all whitespaces in your text by this way
.replace(/\/a>\s<a/g, '/a>&shy; <a')
Looks ugly, but it works for me

@jsamr jsamr added the question label Jul 4, 2020
@jsamr
Copy link
Collaborator

jsamr commented Jul 5, 2020

@ibnukipa I think you are referring to this issue: #118. Closing as I believe is duplicate. If you don't agree, feel free to reply.

@jsamr jsamr closed this as completed Jul 5, 2020
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

3 participants