tomharrigan / voicewp

Create Alexa Skills through WordPress

Home Page:https://voicewp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SSML support in News functionality

tomharrigan opened this issue · comments

Pretty strong case made here: https://hackernoon.com/if-you-want-a-winning-voice-app-implement-ssml-87fb43eec809#.mhhvmcmkz

We can start with not stripping P tags from the markup when stripping other HTML, and go from there as makes sense

Thoughts on implementation:

  1. filter tiny_mce_before_init to add the SSML specs to the valid custom_elements and extended_valid_elements so that they don’t get stripped within the visual editor
  2. in the output of format_single_post in news.php, change it from strip_tags to wp_kses with the valid SSML set in the allowed_html parameter
  3. future, not mvp, add tinyMCE buttons to allow inserting SSML via visual editor