<div>[[+abc:wordwrapcut=`9`]]</div>
<div>ABC123456<br /> -7.0</div>
This question has been answered by donshakespeare. See the first response.
$string = substr_replace($input, '<br />', $options, 0); return $string;
<div>[[+abc:myWordwrapcut=`9`]]</div>
return str_replace('-', '<br />', $input;)http://php.net/substr_replace
Okay, here we go.
Create a snippet, myWordwrapcut$string = substr_replace($input, '<br />', $options, 0); return $string;
Test with this
<div>[[+abc:myWordwrapcut=`9`]]</div>
<div>ABC123456<br />-7.0</div>
<div>ABC123456<br /></div>
$string = wordwrap($input, $options, '<br />', true); return $string;
<div>[[+abc:myWordwrapcut=`9`]]</div>
<div>ABC123456<br />-7.0</div>
<div>ABC123456</div>
I think this would also work:
return str_replace('-', '<br>', $input;)
I would call it hyphenToBr.
return str_replace('-', '<br />-', $input;)