Use fancy replace function with capturing groups to strip html tags in text