<?php
$string=<<<eos
Language, Talysh Language, and Balochi language.
The language is in the List of Southwestern Iranian languages group, along with the Larestani dialects, Kumzari language and Luri language languages.
eos;
//echo strip_tags(file_get_contents('sample.txt'));
//echo preg_replace('#^=+([^=]+)=+$#usm','$1',$string);
echo preg_replace('#\n#u','xxxx',$string);
Language, Talysh Language, and Balochi language.xxxxThe language is in the List of Southwestern Iranian languages group, along with the Larestani dialects, Kumzari language and Luri language languages.