Doc #73129 [NEW]: Wrong russian translation of strip_tags() docs

From: Date: Tue, 20 Sep 2016 13:45:40 +0000
Subject: Doc #73129 [NEW]: Wrong russian translation of strip_tags() docs
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-13925@lists.php.net to get a copy of this message
From: arcadius at mail dot ru Operating system: PHP version: Irrelevant Package: Translation problem Bug Type: Documentation Problem Bug description:Wrong russian translation of strip_tags() docs Description: ------------ Source (http://php.net/manual/en/function.strip-tags.php): In PHP 5.3.4 and later, self-closing XHTML tags are ignored and only non-self-closing tags should be used in allowable_tags. For example, to allow both <br> and <br/>, you should use: <?php strip_tags($input, '<br>'); ?> Current russian translation (http://php.net/manual/ru/function.strip-tags.php): В PHP 5.3.4 и новее также необходимо добавлять соответвующий закрывающий тег XHTML, чтобы удалить тег из str. Например, для удаления и <br> и <br/> нужно сделать следующее: <?php strip_tags($input, '<br><br/>'); ?> Expected result: ---------------- Should be smth like: В PHP 5.3.4 и новее самозакрывающие теги XHTML игнорируются, и в параметре allowable_tags должны использоваться только не самозакрывающие теги. Например, чтобы оставить и <br> и <br/>, нужно сделать следующее: <?php strip_tags($input, '<br>'); ?> -- Edit bug report at https://bugs.php.net/bug.php?id=73129&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73129&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73129&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73129&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=73129&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=73129&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=73129&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=73129&r=needscript Try newer version: https://bugs.php.net/fix.php?id=73129&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=73129&r=support Expected behavior: https://bugs.php.net/fix.php?id=73129&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=73129&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=73129&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=73129&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73129&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=73129&r=dst IIS Stability: https://bugs.php.net/fix.php?id=73129&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=73129&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=73129&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=73129&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=73129&r=mysqlcfg

« previous php.doc.bugs (#13925) next »