Is there a way to add a new line to display in the title attribute of an Anchor tag in HTML? -
i using code store html code in variable called $conversions
$conversions = "gbp " . number_format($file*0.84) . "chf " . number_format($file*1.23)
however can't seem figure out how add <br>
before word "chf ".
any ideas?
the whole code follows:
<?php $file = get_field('fl_price'); if(trim($file) == ""){echo 'price on application' ;}else{$conversions = "gbp " . number_format($file*0.84) . "<br />chf " . number_format($file*1.23) ;echo 'eur ' . number_format($file) . "</br><a class=\"wp-tooltip\" title=\" $conversions \">other currencies</a>" ;} ?>
$conversions = "gbp " . number_format($file*0.84) . "
chf " . number_format($file*1.23);
echoing $conversions
have html-linebreak before chf.
Comments
Post a Comment