The follow is from the current SafeMarkup class docblock,
* This class should be limited to internal use only. Module developers should
* instead use the appropriate
* @link sanitization sanitization functions @endlink or the
* @link theme_render theme and render systems @endlink so that the output can
* can be themed, escaped, and altered properly.
Since this was written core has moved on a lot and now SafeMarkup contains most of the sanitisation methods. Also considering the importance of using SafeMarkup functions correctly I think the documentation should have helpful examples for developers.
Comments
Comment #1
alexpottComment #2
xjmBroadening the scope a bit since it makes sense to update both the class and topic docs holistically following all the recent changes.
Comment #3
xjmComment #4
joelpittetIs this the correct new title for this @xjm?
Comment #5
joelpittetComment #7
xjmThis is related to (maybe a child or duplicate of) #2575551: Document the Drupal 8 sanitization API in the API docs and on Drupal.org.
Comment #8
alexpottDiscussed with @xjm, @cottser, @joelpittet. We decided this is a duplicate of #2575551: Document the Drupal 8 sanitization API in the API docs and on Drupal.org