How can I echo HTML in PHP?

后端 未结 13 2453
耶瑟儿~
耶瑟儿~ 2020-11-22 06:40

I want to conditionally output HTML to generate a page, so what\'s the easiest way to echo multiline snippets of HTML in PHP 4+? Would I need to use a template framework lik

13条回答
  •  独厮守ぢ
    2020-11-22 07:04

    $enter_string = '';
    
    echo('Echo as HTML' . htmlspecialchars((string)$enter_string));
    

提交回复
热议问题