</div><!--end of form_row--> <div class="form_row"> <div class="form_item"> <label>Highlights so far</label> <textarea class="textarea2 infotext" name="info3" id="info3" title="Worked on anything special or with someone amazing? (Max. 30 words)"><?php echo set_value('info3', @symbol_convertion($info3)); ?> </textarea> </div> <div class="form_item2"> <label>Core Competencies</label> <textarea class="textarea2 infotext" name="info4" id="info4" title="Please list the tools you are competent in - software, instruments, etc. (Max. 30 words)"><?php echo set_value('info4', @symbol_convertion($info4)); ?> </textarea> </div> <br class="cl" /> </div><!--end of form_row--> <?php } ?> <div class="shadow_line_nobg">line</div> <div class="form_row"> <div class="form_title">Social Media</div> <p>List your artist Facebook and Twitter links here.</p>
$info_head4 = 'Core Competencies'; } else { $info_head4 = 'Highlights so far'; } ?> <h4><?php echo $info_head4; ?> </h4> <div class="scroll-content"> <div class="scroll-pane"> <?php if (!empty($info4)) { ?> <p><?php echo nl2br(symbol_convertion($info4)); ?> </p> <?php } else { ?> <p>N/A</p> <?php } ?> </div> </div> </div> </div> </div> <div class="right-content">
function symbol_convertion($str) { $str = $str; # Bullets, dashes, and trademarks $str = str_replace("•", ' ', $str); # bullet • $str = str_replace("–", '-', $str); # en dash $str = str_replace("—", '—', $str); # em dash $str = str_replace("™", '', $str); # trademark $str = str_replace("©", '', $str); # copyright mark $str = str_replace("'", "'", $str); # copyright mark $str = str_replace(""", "'", $str); # registration mark $str = str_replace("®", '', $str); # registration mark $str = str_replace("÷", '', $str); $str = str_replace("&", '&', $str); $str = str_replace(" ", ' ', $str); if (preg_match('/(amp|nbsp|ndash|#39|quot)/', $str)) { return symbol_convertion($str); } return $str; }