I am using a regex to test if a Rich text has any content. I have got it working using the regex to determine if there is any content in-between HTML tags. However I cannot seem to then make the same regex work effectively if there is spaces entered inbetween.
I.e a regex that has the two conditions first to check is any content is between the html tags and second if any of that content has at least one non-whitespace character? Perhaps the issue lies with doing it via JS?
Any help would be great as I have spent some time and the best I have is:
new RegExp(/>[^><]+</, "g");