-
Notifications
You must be signed in to change notification settings - Fork 89
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
raw html support #50
base: master
Are you sure you want to change the base?
raw html support #50
Conversation
Thank you for your contribution! But this doesn't seem to be a robust solution for HTML support. |
I will try research edge cases soon. |
@Justineo I made some changes. |
@Justineo Any news? I tried to do possible smallest and safe changes in component. May be sometimes second |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I've left a few comments.
rawHtml: { | ||
type: Boolean, | ||
default: false | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather make rawHtml
as a string, used like:
<v-clamp :raw-html="html" .../>
Co-authored-by: GU Yiling <[email protected]>
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/justineo/vue-clamp/3zruFfJCvkd1Dd2ETKGcio3RPHfU |
Fixes #42 #48
But maybe there is a problem with incorrectly closed tags?