I would like to use RegExp in JS to replace any html tags which only include whitespaces(' ' or ) inside of it with its html encoded equivalent .
For example:
Replace
'<strong> </strong>' => ' '
Another example,
Replace:
'<strong> </strong> => ' '