Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function(){
- $("body").children().each(function () {
- $(this).html( $(this).html().replace(/ơ/g,"ö") );
- $(this).html( $(this).html().replace(/ư/g,"ü") );
- $(this).html( $(this).html().replace(/ả/g,"a^") );
- $(this).html( $(this).html().replace(/ẳ/g,"ă^") );
- $(this).html( $(this).html().replace(/ẩ/g,"â^") );
- $(this).html( $(this).html().replace(/ẻ/g,"e^") );
- $(this).html( $(this).html().replace(/ể/g,"ê^") );
- $(this).html( $(this).html().replace(/ỉ/g,"i^") );
- $(this).html( $(this).html().replace(/ỏ/g,"o^") );
- $(this).html( $(this).html().replace(/ổ/g,"ô^") );
- $(this).html( $(this).html().replace(/ở/g,"ö^") );
- $(this).html( $(this).html().replace(/ủ/g,"u^") );
- $(this).html( $(this).html().replace(/ử/g,"ü^") );
- $(this).html( $(this).html().replace(/ỷ/g,"y^") );
- $(this).html( $(this).html().replace(/ạ/g,"a·") );
- $(this).html( $(this).html().replace(/ặ/g,"ă·") );
- $(this).html( $(this).html().replace(/ậ/g,"â·") );
- $(this).html( $(this).html().replace(/ẹ/g,"e·") );
- $(this).html( $(this).html().replace(/ệ/g,"ê·") );
- $(this).html( $(this).html().replace(/ị/g,"i·") );
- $(this).html( $(this).html().replace(/ọ/g,"o·") );
- $(this).html( $(this).html().replace(/ộ/g,"ô·") );
- $(this).html( $(this).html().replace(/ợ/g,"ö·") );
- $(this).html( $(this).html().replace(/ụ/g,"u·") );
- $(this).html( $(this).html().replace(/ự/g,"ü·") );
- $(this).html( $(this).html().replace(/ỵ/g,"y·") );
- $(this).html( $(this).html().replace(/ắ/g,"ă´") );
- $(this).html( $(this).html().replace(/ớ/g,"ö´") );
- $(this).html( $(this).html().replace(/ứ/g,"ü´") );
- $(this).html( $(this).html().replace(/ằ/g,"ă`") );
- $(this).html( $(this).html().replace(/ờ/g,"ö`") );
- $(this).html( $(this).html().replace(/ừ/g,"ü`") );
- $(this).html( $(this).html().replace(/ỡ/g,"ö~") );
- $(this).html( $(this).html().replace(/ữ/g,"ü~") );
- });
- });
- // Source: https://stackoverflow.com/questions/18643766/find-and-replace-specific-text-characters-across-a-document-with-js
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement