Changeset 7006 for trunk/src/includes/admin/converters/Invision.php
- Timestamp:
- 11/24/2019 01:38:37 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/admin/converters/Invision.php
r6670 r7006 541 541 542 542 private function to_char( $input ) { 543 $output = "";543 $output = ''; 544 544 for ( $i = 0; $i < strlen( $input ); $i++ ) { 545 545 $j = ord( $input{$i} ); 546 546 if ( ( $j >= 65 && $j <= 90 ) 547 547 || ( $j >= 97 && $j <= 122 ) 548 || ( $j >= 48 && $j <= 57 ) ) 549 { 548 || ( $j >= 48 && $j <= 57 ) ) { 550 549 $output .= $input{$i}; 551 550 } else { 552 $output .= "&#" . ord( $input{$i} ) . ";";551 $output .= '&#' . ord( $input{$i} ) . ''; 553 552 } 554 553 }
Note: See TracChangeset
for help on using the changeset viewer.