-
Bug
-
Resolution: Fixed
-
Minor
-
2.7, 3.9.4, 3.10.1, 3.11, 4.0
-
MOODLE_27_STABLE, MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
-
MOODLE_310_STABLE, MOODLE_39_STABLE
-
The problem is strip_tags will join words together:
<p>Some text</p>
<p><br/><p>
<p>Some more text</p>
How many words ? Moodle thinks it's 4.
Also count_letters includes the letters in HTML entities - eg is 6 letters.