ecosia / vue-safe-html

A Vue directive which renders sanitised HTML dynamically
Other
28 stars 4 forks source link

Fix crashing on null or undefined input #110

Closed JohannesRiegler closed 10 months ago

JohannesRiegler commented 1 year ago

I had the issue that my vue application crashed if i provided a null value this PR fixes this

axlwaii commented 10 months ago

Good catch! Thank you for providing a fix, we recently did some refactoring of the sanitizeHTML method to also support attributes so I included your changes in the PR https://github.com/ecosia/vue-safe-html/pull/120

I am closing this PR for now since the changes will be included in our new version.