Hi I am working on a PHP framework and I am using output buffer to display view and layout. Problem is that I can't get PHP errors and exceptions happening in HTML element attributes. Please notice:
If any thing is wrong with $name, it will be shown. But there will be no sign of errors if anything is wrong with PHP expression in href attribute.
What is the best solution to fix this? Should I specify any error handler?
<a href="<?php echo url();?>"><?php echo $name;?></a>