Answer the question
In order to leave comments, you need to log in
How to convert string variable with html tags to html document?
Hello fellow programmers!
The essence of the question is as follows:
There is a $content variable of the form:
# This is a string \n\n https://s10.postimg.org/nqmx035d5/image.jpg\n\nPresent to you is the first
Answer the question
In order to leave comments, you need to log in
Yes, I am using this module. The trick is that I don't have end tags
$content = '### Heading 3 ###'
And markdown doesn't recognize line break tags by itself. At the same time, if you put enter in the text of the variable (text in the database), then the markdown works fine.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question