php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #73129 [RU] Wrong translation of strip_tags() docs
Submitted: 2016-09-20 13:45 UTC Modified: 2016-11-06 18:39 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: arcadius at mail dot ru Assigned: rjhdby (profile)
Status: Closed Package: Translation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: arcadius at mail dot ru
New email:
PHP Version: OS:

 

 [2016-09-20 13:45 UTC] arcadius at mail dot ru
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>');
?>


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-09-20 16:06 UTC] cmb@php.net
-Summary: Wrong russian translation of strip_tags() docs +Summary: [RU] Wrong translation of strip_tags() docs
 [2016-11-06 18:39 UTC] rjhdby@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: rjhdby
 [2016-11-06 18:39 UTC] rjhdby@php.net
already updated
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 05:01:30 2024 UTC