PHP Site Assistant inserts extra space between words in field labels
Operating system version
Description of the issue
The PHP site assistant generates code to display field labels as such:
<?php echo str_replace(' ', ' ',htmlentities('<
The purpose of the str_replace function is to substitute all spaces with a non-breaking space to ensure that labels stay on one line.
There is however an extra space after the and thus the whole idea is for naught.
The labels ends up having two spaces between words and will line-break as before.
Steps to reproduce the problem
Run the PHP Site assistant using field labels with more than one word.
The extra space should not be there and the label should not line-break.
The label line-breaks.
Remove the extra space by hand in the relevant files.