1
<html>
<head><title>Example page</title></head>
<body>
<textarea name="description">This is some text</textarea>
<input type='text' name='bla' value='a textinput' />
<textarea name="interests">What i like to do</textarea>
</body>
</html>
上記のhtmlコードは変数の値です。私はすべてのテキストエリアをつかみ、何かで置き換えたいと思う。何が文字列から次の配列を取得する方法次のようになります。テキストエリアを検索して別のものに置き換えます
1: <textarea name="description">This is some text</textarea>
2: <textarea name="interests">What i like to do</textarea>