Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
これが私の機能です
on*属性を削除する正規表現を正しく取得できません
public function removeUnsafeAttributes($input, $validTags = '') { $regex = ""; return preg_replace($regex,strip_tags($input, $validTags)); }
ありがとう!
これは行います:
/on[A-Za-z]*?\=\".*?\"/