function webhosting_products_shortcode( $atts, $content = null) {
ob_start();
include('shortcodecontent.php');
$shortcode = ob_get_clean();
return $shortcode;
}
add_shortcode('webhosting', 'webhosting_products_shortcode');
Improvements include:
- Your html is now in a separate file, and can be written as is, rather than as a long PHP string
- Trailing whitespace is bad, untidy, and should be highlighted by your code editor to point out the waste