in JavaScript
let html = `
<h1>Hello</h1>
`;
in PHP
echo <<<HTML
<h1>Hello</h1>
HTML;
in JavaScript
let html = `
<h1>Hello</h1>
`;
echo <<<HTML
<h1>Hello</h1>
HTML;
I worked on a legacy SIP application a year ago, and the previous developer had written everything in vanilla JS with embedded HTML. It was a mess just one massive JS file. This post triggered my trauma π©