Diff
checker
टेक्स्ट
टेक्स्ट
छवियां
दस्तावेज़
Excel
फ़ोल्डर्स
Legal
Enterprise
डेस्कटॉप
मूल्य
साइन इन करें
Diffchecker डेस्कटॉप डाउनलोड करें
टेक्स्ट की तुलना करें
दो टेक्स्ट फ़ाइलों के बीच अंतर ढूंढें
उपकरण
इतिहास
रियल-टाइम एडिटर
रिक्त स्थान छिपाएँ
अपरिवर्तित संक्षिप्त करें
लाइन रैप बंद
लेआउट
विभाजित
संयुक्त
परिवर्तन हाइलाइट करें
स्मार्ट
शब्द
अक्षर
टेक्स्ट शैलियां
दिखावट बदलें
सिंटैक्स हाइलाइटिंग
सिंटैक्स चुनें
अनदेखा करें
टेक्स्ट बदलें
पहले अंतर पर जाएँ
इनपुट संपादित करें
Diffchecker Desktop
Diffchecker चलाने का सबसे सुरक्षित तरीका। Diffchecker Desktop ऐप पाएं: आपके diffs कभी आपके कंप्यूटर से बाहर नहीं जाते!
Desktop पाएं
Untitled diff
बनाया गया
10 वर्ष पहले
Diff कभी समाप्त नहीं होता
साफ़
निर्यात करें
शेयर करें
समझाएं
30 हटाए गए
लाइनें
कुल
हटाया गया
अक्षर
कुल
हटाया गया
इस सुविधा का उपयोग जारी रखने के लिए, अपग्रेड करें
Diff
checker
Pro
मूल्य देखें
50 लाइनें
सभी को कॉपी करें
65 जोड़े गए
लाइनें
कुल
जोड़ा गया
अक्षर
कुल
जोड़ा गया
इस सुविधा का उपयोग जारी रखने के लिए, अपग्रेड करें
Diff
checker
Pro
मूल्य देखें
55 लाइनें
सभी को कॉपी करें
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
function
wpse8170_
sanitize_title_with_dashes( $title, $raw_title = '', $context = 'display' ) {
function
sanitize_title_with_dashes( $title, $raw_title = '', $context = 'display' ) {
$title = strip_tags($title);
1580
$title = strip_tags($title);
// Preserve escaped octets.
1581
// Preserve escaped octets.
$title = preg_replace('|%([a-fA-F0-9][a-fA-F0-9])|', '---$1---', $title);
1582
$title = preg_replace('|%([a-fA-F0-9][a-fA-F0-9])|', '---$1---', $title);
// Remove percent signs that are not part of an octet.
1583
// Remove percent signs that are not part of an octet.
$title = str_replace('%', '', $title);
1584
$title = str_replace('%', '', $title);
// Restore octets.
1585
// Restore octets.
$title = preg_replace('|---([a-fA-F0-9][a-fA-F0-9])---|', '%$1', $title);
1586
$title = preg_replace('|---([a-fA-F0-9][a-fA-F0-9])---|', '%$1', $title);
1587
if (seems_utf8($title)) {
1588
if (seems_utf8($title)) {
if (function_exists('mb_strtolower')) {
1589
if (function_exists('mb_strtolower')) {
$title = mb_strtolower($title, 'UTF-8');
1590
$title = mb_strtolower($title, 'UTF-8');
}
1591
}
$title = utf8_uri_encode($title,
1000); // <--- here is the trick!
1592
$title = utf8_uri_encode($title,
200);
}
1593
}
1594
$title = strtolower($title);
1595
$title = strtolower($title);
$title = preg_replace('/&.+?;/', '', $title); // kill entities
1596
$title = str_replace(
'.'
, '-', $title
);
1597 if ( 'save' == $context ) {
1598 // Convert nbsp, ndash and mdash to hyphens
if ( 'save' == $context ) {
1599
$title = str_replace(
array( '%c2%a0', '%e2%80%93', '%e2%80%94' )
, '-', $title
);
// Convert nbsp, ndash and mdash
to hyphens
1600
// Convert nbsp, ndash and mdash
HTML entities
to hyphens
$title = str_replace( array( '
%c2%a0
', '
%e2%80%93
', '
%e2%80%94
' ), '-', $title );
1601
$title = str_replace( array( '
', '
 
', '
–', '–', '—', '—
' ), '-', $title );
1602
// Strip these characters entirely
1603
// Strip these characters entirely
$title = str_replace( array(
1604
$title = str_replace( array(
// iexcl and iquest
1605
// iexcl and iquest
'%c2%a1', '%c2%bf',
1606
'%c2%a1', '%c2%bf',
// angle quotes
1607
// angle quotes
'%c2%ab', '%c2%bb', '%e2%80%b9', '%e2%80%ba',
1608
'%c2%ab', '%c2%bb', '%e2%80%b9', '%e2%80%ba',
// curly quotes
1609
// curly quotes
'%e2%80%98', '%e2%80%99', '%e2%80%9c', '%e2%80%9d',
1610
'%e2%80%98', '%e2%80%99', '%e2%80%9c', '%e2%80%9d',
'%e2%80%9a', '%e2%80%9b', '%e2%80%9e', '%e2%80%9f',
1611
'%e2%80%9a', '%e2%80%9b', '%e2%80%9e', '%e2%80%9f',
// copy, reg, deg, hellip and trade
1612
// copy, reg, deg, hellip and trade
'%c2%a9', '%c2%ae', '%c2%b0', '%e2%80%a6', '%e2%84%a2',
1613
'%c2%a9', '%c2%ae', '%c2%b0', '%e2%80%a6', '%e2%84%a2',
//
grave
accent
, acute
accent, macron, caron
1614
//
acute
accent
s
'%cc%80',
'%cc%
81
', '%cc%84', '%cc%8c',
1615 '%c2%b4', '%cb%8a', '%cc%81', '%cd%81',
), '', $title );
1616 // grave
accent, macron, caron
1617
'%cc%
80
', '%cc%84', '%cc%8c',
// Convert times to x
1618
), '', $title );
$title = str_replace( '%c3%97', 'x', $title );
1619
}
1620
// Convert times to x
1621
$title = str_replace( '%c3%97', 'x', $title );
$title = preg_replace('/[^%a-z0-9 _-]/', '', $title);
1622
}
$title = preg_replace('/\s+/', '-', $title);
1623
$title = preg_replace('|-+|', '-', $title);
1624 $title = preg_replace('/&.+?;/', '', $title); // kill entities
$title = trim($title, '-');
1625 $title = str_replace('.', '-', $title);
1626
return $title;
1627
$title = preg_replace('/[^%a-z0-9 _-]/', '', $title);
}
1628
$title = preg_replace('/\s+/', '-', $title);
1629
$title = preg_replace('|-+|', '-', $title);
1630
$title = trim($title, '-');
1631
1632
return $title;
1633
}
सेव किए गए Diffs
ऑरिजनल टेक्स्ट
फ़ाइल खोलें
function wpse8170_sanitize_title_with_dashes( $title, $raw_title = '', $context = 'display' ) { $title = strip_tags($title); // Preserve escaped octets. $title = preg_replace('|%([a-fA-F0-9][a-fA-F0-9])|', '---$1---', $title); // Remove percent signs that are not part of an octet. $title = str_replace('%', '', $title); // Restore octets. $title = preg_replace('|---([a-fA-F0-9][a-fA-F0-9])---|', '%$1', $title); if (seems_utf8($title)) { if (function_exists('mb_strtolower')) { $title = mb_strtolower($title, 'UTF-8'); } $title = utf8_uri_encode($title, 1000); // <--- here is the trick! } $title = strtolower($title); $title = preg_replace('/&.+?;/', '', $title); // kill entities $title = str_replace('.', '-', $title); if ( 'save' == $context ) { // Convert nbsp, ndash and mdash to hyphens $title = str_replace( array( '%c2%a0', '%e2%80%93', '%e2%80%94' ), '-', $title ); // Strip these characters entirely $title = str_replace( array( // iexcl and iquest '%c2%a1', '%c2%bf', // angle quotes '%c2%ab', '%c2%bb', '%e2%80%b9', '%e2%80%ba', // curly quotes '%e2%80%98', '%e2%80%99', '%e2%80%9c', '%e2%80%9d', '%e2%80%9a', '%e2%80%9b', '%e2%80%9e', '%e2%80%9f', // copy, reg, deg, hellip and trade '%c2%a9', '%c2%ae', '%c2%b0', '%e2%80%a6', '%e2%84%a2', // grave accent, acute accent, macron, caron '%cc%80', '%cc%81', '%cc%84', '%cc%8c', ), '', $title ); // Convert times to x $title = str_replace( '%c3%97', 'x', $title ); } $title = preg_replace('/[^%a-z0-9 _-]/', '', $title); $title = preg_replace('/\s+/', '-', $title); $title = preg_replace('|-+|', '-', $title); $title = trim($title, '-'); return $title; }
परिवर्तित टेक्स्ट
फ़ाइल खोलें
function sanitize_title_with_dashes( $title, $raw_title = '', $context = 'display' ) { 1580 $title = strip_tags($title); 1581 // Preserve escaped octets. 1582 $title = preg_replace('|%([a-fA-F0-9][a-fA-F0-9])|', '---$1---', $title); 1583 // Remove percent signs that are not part of an octet. 1584 $title = str_replace('%', '', $title); 1585 // Restore octets. 1586 $title = preg_replace('|---([a-fA-F0-9][a-fA-F0-9])---|', '%$1', $title); 1587 1588 if (seems_utf8($title)) { 1589 if (function_exists('mb_strtolower')) { 1590 $title = mb_strtolower($title, 'UTF-8'); 1591 } 1592 $title = utf8_uri_encode($title, 200); 1593 } 1594 1595 $title = strtolower($title); 1596 1597 if ( 'save' == $context ) { 1598 // Convert nbsp, ndash and mdash to hyphens 1599 $title = str_replace( array( '%c2%a0', '%e2%80%93', '%e2%80%94' ), '-', $title ); 1600 // Convert nbsp, ndash and mdash HTML entities to hyphens 1601 $title = str_replace( array( ' ', ' ', '–', '–', '—', '—' ), '-', $title ); 1602 1603 // Strip these characters entirely 1604 $title = str_replace( array( 1605 // iexcl and iquest 1606 '%c2%a1', '%c2%bf', 1607 // angle quotes 1608 '%c2%ab', '%c2%bb', '%e2%80%b9', '%e2%80%ba', 1609 // curly quotes 1610 '%e2%80%98', '%e2%80%99', '%e2%80%9c', '%e2%80%9d', 1611 '%e2%80%9a', '%e2%80%9b', '%e2%80%9e', '%e2%80%9f', 1612 // copy, reg, deg, hellip and trade 1613 '%c2%a9', '%c2%ae', '%c2%b0', '%e2%80%a6', '%e2%84%a2', 1614 // acute accents 1615 '%c2%b4', '%cb%8a', '%cc%81', '%cd%81', 1616 // grave accent, macron, caron 1617 '%cc%80', '%cc%84', '%cc%8c', 1618 ), '', $title ); 1619 1620 // Convert times to x 1621 $title = str_replace( '%c3%97', 'x', $title ); 1622 } 1623 1624 $title = preg_replace('/&.+?;/', '', $title); // kill entities 1625 $title = str_replace('.', '-', $title); 1626 1627 $title = preg_replace('/[^%a-z0-9 _-]/', '', $title); 1628 $title = preg_replace('/\s+/', '-', $title); 1629 $title = preg_replace('|-+|', '-', $title); 1630 $title = trim($title, '-'); 1631 1632 return $title; 1633 }
अंतर खोजें