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

sanitize-html returns a string 'undefined' when content is empty, I c… #598

Open

Conversation

@brunofortes
Copy link

@brunofortes brunofortes commented Sep 12, 2019

According to this issue apostrophecms/sanitize-html#81, the sanitize-html may return 'undefined' string when episode content is empty.

I made episode.js change this 'undefined' string for an empty paragraph.

I also tried to persist an empty string as content, instead of <p></p>, but PodcastEpisode.js understand empty content as an error and shows an error message.

…hanged this string to an empty paragraph
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.