Replace in whole string
FossilOrigin-Name: 669b709a71efd8baa23291fdc8670a77bfde04bd22e5423dabd4586647f63ea2
This commit is contained in:
parent
4c3c5d6cc6
commit
3e311b4e6d
1 changed files with 1 additions and 1 deletions
|
@ -220,7 +220,7 @@ char* greentextify(char* content)
|
|||
reg_string[gt_len] = '\0';
|
||||
easprintf(>_string, "<span class=\"greentext\">%s</span>", reg_string);
|
||||
|
||||
res = strrepl(res, reg_string, gt_string, 0);
|
||||
res = strrepl(res, reg_string, gt_string, STRREPL_ALL );
|
||||
if (oldres != content) free(oldres);
|
||||
ind = re_results[2] + strlen(gt_string);
|
||||
free(reg_string);
|
||||
|
|
Loading…
Reference in a new issue