React-native-render-html: How to ignore trim the value between the tags?

Created on 12 May 2019  路  2Comments  路  Source: meliorence/react-native-render-html

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",

Most helpful comment

You can replace all whitespaces in your text by this way
.replace(/\/a>\s Looks ugly, but it works for me

All 2 comments

Was this page helpful?
0 / 5 - 0 ratings

Related issues

presencewebdesign picture presencewebdesign  路  7Comments

psegalen picture psegalen  路  7Comments

HarrisKoffi picture HarrisKoffi  路  5Comments

gabriel-tentaculo picture gabriel-tentaculo  路  7Comments

xipgroc picture xipgroc  路  6Comments