Remove non breaking space: Difference between revisions

Jump to navigation Jump to search
(Created page with "How to remove non breaking space == Definition == # [https://en.wikipedia.org/wiki/Non-breaking_space Non-breaking space] ({{kbd | key=<nowiki>nbsp;</nowiki>}}) Sentence s...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
How to remove non breaking space
How to display or remove non-breaking space


== Definition ==
== Definition ==


# [https://en.wikipedia.org/wiki/Non-breaking_space Non-breaking space] ({{kbd | key=<nowiki>nbsp;</nowiki>}})  
# [https://en.wikipedia.org/wiki/Non-breaking_space Non-breaking space] ([https://zh.wikipedia.org/zh-tw/%E4%B8%8D%E6%8D%A2%E8%A1%8C%E7%A9%BA%E6%A0%BC 不換行空格], {{kbd | key=<nowiki>nbsp;</nowiki>}})  


Sentence spacing
Sentence spacing
Line 9: Line 9:


== How to remove the non-breaking space In PHP ==
== How to remove the non-breaking space In PHP ==
Replace Non-breaking space with one whitespace using PHP: {{kbd | key=<nowiki>$result = str_replace("\xc2\xa0", ' ', $original_string);</nowiki>}}<ref>[https://stackoverflow.com/questions/40724543/how-to-replace-decoded-non-breakable-space-nbsp php - How to replace decoded Non-breakable space (nbsp) - Stack Overflow]</ref>
Replace Non-breaking space with one whitespace using PHP<ref>[https://stackoverflow.com/questions/40724543/how-to-replace-decoded-non-breakable-space-nbsp php - How to replace decoded Non-breakable space (nbsp) - Stack Overflow]</ref>
 
<pre>
$result = str_replace("\xc2\xa0", ' ', $original_string);
</pre>


== How to display the non-breaking space In PHP ==
== How to display the non-breaking space In PHP ==
Anonymous user

Navigation menu