문제

Is there a good slugging algorithm or library out there to take a String of possibly all sorts of punctuation etc and convert it into a nice clean slug for a URL? Even better if the Play Framework has one already ;)

도움이 되었습니까?

해결책

I took the method from Play 1 and copied it to a module:

https://github.com/mariussoutier/Play-Extensions/blob/master/app/Implicits.scala#L12

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top