I am trying to make it so that asterisks in my string denote list elements in an unordered list.
$first_char = substr($p,0,1);
if($first_char == '*'){
$p = '<ul>' . $p . '</li></ul>';
$p = str_replace('*' , '<li>',$p);
$p = str_replace('\n' , '</li>',$p);
}
However, if this makes it so that no asterisks can be used as content in the list elements. Is there any way to change this?
linodes into asterisks using thecontentproperty in css. what I wrote below wasn't really an answer to your direct question, so I deleted it. If you want to look into this, there's some useful information here: stackoverflow.com/a/12216973/3044080