I am handling user input. The user is expected to input text in the format of:
#html
html code goes here
##html
How can I find every instance of #html and ##html and replace those "tags" and the content in between with a variable I have already defined? I tried str_ireplace() with substr() but that did not work.