MATLAB ヘルプ センター
HTML および XML のエンティティから文字への変換
newStr = decodeHTMLEntities(str)
newStr = decodeHTMLEntities(str) は、str の要素内の HTML および XML の文字エンティティと数値文字参照を、同等の Unicode に置き換えます。
newStr
str
例
すべて折りたたむ
HTML 文字エンティティを同等の Unicode に置き換えます。
str = ["<>" "R&D"]; newStr = decodeHTMLEntities(str)
newStr = 1×2 string "<>" "R&D"
HTML の数値文字参照を同等の Unicode に置き換えます。16 進コードの Unicode 文字   はスペースです。
 
str = "R D"; newStr = decodeHTMLEntities(str)
newStr = "R D"
入力テキスト。string 配列、文字ベクトル、または文字ベクトルの cell 配列として指定します。
例: ["An example of a short sentence."; "A second short sentence."]
["An example of a short sentence."; "A second short sentence."]
データ型: string | char | cell
string
char
cell
出力テキスト。string 配列、文字ベクトル、または文字ベクトルの cell 配列として返されます。str と newStr は同じデータ型です。
R2017b で導入
eraseTags | eraseURLs | erasePunctuation | lower | upper | tokenizedDocument
eraseTags
eraseURLs
erasePunctuation
lower
upper
tokenizedDocument
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
ヨーロッパ
アジア太平洋地域
最寄りの営業オフィスへのお問い合わせ