I am developing a wordpress plugin and I am using echo
to display the HTML layout into the function. Is there any way to load the external html template or page content into a variable?
This is my code to render the template.
function render_template() {
echo '<div class="wrapper">';
.....
.....
echo '</div>';
}