I actually have a pretty big issue.
I am printing to a pdf in C# and my boss wanted me to implement tinymce which went fine. Unfortunately we are using an old pdf printer-class that only supports b, i and u tags in html. but I need to be able to create indents as well.
this is how indentation looks in tinymce
[p style="padding-left: 30px;">ijkk</p] (tags look like <p>)
Unfortunately I only have a string that contains mixed plaintext and html(from tinymce) so I wanted to write a regex that get's all p tags with attributes(I have done this) and then based on the amount of pixels in "padding-left:", replace it with " whitespace30px"+text(if that makes sense?)
here's what I have come up with so far:
text = Regex.Replace(text, @"<p.*?>(.*)</p>", " " + "$1");
but the whitespace is hard coded