Project

General

Profile

Actions

Feature #10051

open

nbsp isn't remove with trim

Feature #10051: nbsp isn't remove with trim

Added by basvodde (Bas Vodde) over 12 years ago. Updated over 12 years ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:63787]

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 ""


Related issues 1 (1 open — 0 closed)

Related to Ruby - Feature #7845: Strip doesn't handle unicode space characters in ruby 1.9.2 & 1.9.3 (does in 1.9.1)OpenActions

Updated by nobu (Nobuyoshi Nakada) over 12 years ago Actions #1 [ruby-core:63790]

  • 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.

Updated by Earlopain (Earlopain _) 9 days ago Actions #2

  • Related to Feature #7845: Strip doesn't handle unicode space characters in ruby 1.9.2 & 1.9.3 (does in 1.9.1) added
Actions

Also available in: PDF Atom