Changes between Initial Version and Version 1 of Ticket #26842, comment 23
- Timestamp:
- 03/24/2017 02:31:11 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #26842, comment 23
initial v1 11 11 12 12 {{{ 13 add_filter( 'content_save_pre', 'remove_ nbsps' );13 add_filter( 'content_save_pre', 'remove_buggy_nbsps', 99 ); 14 14 15 function remove_ nbsps( $content ) {15 function remove_buggy_nbsps( $content ) { 16 16 17 $content = str_replace( ' ', ' ', $content ) ; 18 19 return $content ; 17 return str_replace( '\xc2\xa0', ' ', $content); 20 18 21 19 }