Actions
Feature #10051
opennbsp isn't remove with trim
    Feature #10051:
    nbsp isn't remove with trim
  
Status:
Open
Assignee:
-
Target version:
-
Description
When I have a nbsp character in a string and call strip on it, it will not remove it even though is would could as a whitespace.
E.g.
Nokogiri.HTML(" ").text.strip
results in " " and should result in ""
        
          
          Updated by nobu (Nobuyoshi Nakada) over 11 years ago
          
          
        
        
      
      - Tracker changed from Bug to Feature
 - Description updated (diff)
 - Category set to M17N
 
Currently methods of String don't deal with Unicode properties.
Possibly some gems might be available.
Actions