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?