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

html parsing problem #50

Closed
Aliaksandr-Padabed opened this issue Jul 7, 2018 · 3 comments
Closed

html parsing problem #50

Aliaksandr-Padabed opened this issue Jul 7, 2018 · 3 comments
Assignees
Labels

Comments

@Aliaksandr-Padabed
Copy link

Aliaksandr-Padabed commented Jul 7, 2018

html:

<p class="cl1">text with 'single quote</p>
...
<p class="cl1">another s'ingle quote</p>

js:

rcs.replace.any(html);

result:

"cl1|single quote</p>...<p class="cl1">another s"
@JPeer264
Copy link
Owner

JPeer264 commented Jul 7, 2018

Hey @Aliaksandr-Padabed, thanks for your issue.

Oh, that should not happen. I'm gonna investigate this tomorrow.

@JPeer264 JPeer264 added the bug label Jul 7, 2018
@JPeer264 JPeer264 self-assigned this Jul 7, 2018
JPeer264 added a commit that referenced this issue Jul 9, 2018
@JPeer264
Copy link
Owner

JPeer264 commented Jul 9, 2018

@Aliaksandr-Padabed I published now a new function for HTML. Can you try rcs.replace.html?

For now this function just replaces class and id attributes, but I will add more attributes soon (ref: #53).

If this or another error still exists please open a new issue.

@Aliaksandr-Padabed
Copy link
Author

@JPeer264 thanks for quick response, will try soon.

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