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 comments stripped #38

Open
jeroenlammerts opened this issue Sep 12, 2016 · 2 comments
Open

Html comments stripped #38

jeroenlammerts opened this issue Sep 12, 2016 · 2 comments
Labels

Comments

@jeroenlammerts
Copy link

Why are comments stripped out of the component?

<p>Hello {{subject}} <!-- keep me here --></p>

<script>
  component.exports = {
    data: { subject: 'World' },
    stripComments: false
  };
</script>

output:

<p>Hello World</p>
@MartinKolarik
Copy link
Member

I think we might have an open issue for this somewhere. The problem is that the code in rcu has some parsing options hardcoded.

@MartinKolarik
Copy link
Member

I think this is the relevant bit of code. A PR to make those user-configurable would be definitely welcomed.

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