bugfix render prev and next link

because when we use swig, it will auto escaped