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

Filter.js inside ReactJs #124

Closed
Nankym opened this issue Mar 4, 2016 · 1 comment
Closed

Filter.js inside ReactJs #124

Nankym opened this issue Mar 4, 2016 · 1 comment

Comments

@Nankym
Copy link

Nankym commented Mar 4, 2016

Hi,

I would insert a component with Filter.js inside the ReactJs, someone already doing this?
When I inserted the script "template" in ReactJS gives unexpected token in "<%=".

Code: https://jsfiddle.net/nankym/m7v1p8dw
Tnks

Nankym added a commit to Nankym/filter.js that referenced this issue Mar 4, 2016
To use the lib with reactJs is required to replace the HTML entity code to string, before replace the template.

Ref EloquentStudio#124

In JSX I can't use the "<%=" token, therefore I need convert to HTML entity code("&lt;%=") and after convert again.
@Nankym
Copy link
Author

Nankym commented Mar 4, 2016

With this change I close the problem:

https://github.com/jiren/filter.js/pull/125

@Nankym Nankym closed this as completed Mar 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant