Remove white space between html tags php -
i have problem @ converting markdown source other formats using pandoc. whole problem occurs when in markdown located html; when there spaces between 2 html tags, isn't converted correctly. need check whole markdown source , remove whitespaces between 2 different html tags, e.g.
here text in markdown (lorem ipsum)
<table> <tr> <td> here text</td> <td>some other text</td> </tr> </table>
i'm using pandoc in php, think when source of markdown read in variable, matched , replaced regex
; output after replacement should like:
here text in markdown (lorem ipsum)
<table><tr><td> here text</td><td>some other text</td></tr></table>
so when between >
, <
there nothing else whitespace, whitespace should removed.
you can use css property white-space:pre-wrap;
. whitespace preserved browser. text wrap when necessary, , on line breaks
Comments
Post a Comment