Merge branch 'issue-10' of krzysiej/paper-pi into master
This commit was merged in pull request #17.
This commit is contained in:
@@ -30,7 +30,7 @@ class HtmlToPos
|
||||
preg_match_all($re, $html, $matches, PREG_SET_ORDER, 0);
|
||||
foreach ($matches as $match) {
|
||||
$pos = strpos($posText, $match[0]);
|
||||
$posText = substr_replace($posText, mb_rand($match[1], $match[2]), $pos, strlen($match[0]));
|
||||
$posText = substr_replace($posText, mt_rand($match[1], $match[2]), $pos, strlen($match[0]));
|
||||
}
|
||||
return $posText;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user