|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-11-25 11:10 UTC] xdecock at gmail dot com
[2017-04-01 19:32 UTC] tpunt@php.net
-Status: Open
+Status: Wont fix
[2017-04-01 19:32 UTC] tpunt@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 20:00:01 2025 UTC |
Description: ------------ Would be nice to have something like: 'img'=>array('type'=>BBCODE_TYPE_NOARG, 'open_tag'=>'<img src="', 'close_tag'=>'" />', 'max'=>5) So the first 5 [img] tags are replaced, while the others remain as plain text. This could be done via own script (and probably should) but would be nice to have such function. Reproduce code: --------------- [img] x 8 Expected result: ---------------- <img> x 5 [img] x 3 Actual result: -------------- [img] x 8